Skip to content

Commit

Permalink
Test Autofix (#4374)
Browse files Browse the repository at this point in the history
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
lihaoyi and autofix-ci[bot] authored Jan 20, 2025
1 parent 64c011e commit e752ba8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 65 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/autofix-push.yml

This file was deleted.

25 changes: 6 additions & 19 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,14 @@
name: 'autofix'
name: 'autofix.ci'
on:
pull_request:
jobs:
build-test:
autofix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- run: ./mill -i mill.scalalib.scalafmt.ScalafmtModule/
- run: git clean -xdf
- run: |
./mill __.fix + mill.javalib.palantirformat.PalantirFormatModule/ + mill.scalalib.scalafmt.ScalafmtModule/ + mill.kotlinlib.ktlint.KtlintModule/
./mill --meta-level 1 mill.scalalib.scalafmt.ScalafmtModule/
- run: git config --global user.email "you@example.com"
- run: git config --global user.name "Your Name"
- run: git commit -am "autofix" --allow-empty

- run: echo "git@github.com:${{ github.event.pull_request.head.repo.full_name }}.git"
- run: echo ${{ github.event.pull_request.head.ref }}
- run: echo -n "git@github.com:${{ github.event.pull_request.head.repo.full_name }}.git" > .autofix-repo
- run: echo -n HEAD:${{ github.event.pull_request.head.ref }} > .autofix-branch


- uses: actions/upload-artifact@v4.5.0
with:
path: .
name: autofix-artifacts
include-hidden-files: true
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
20 changes: 0 additions & 20 deletions ci/push-autofix.sh

This file was deleted.

3 changes: 3 additions & 0 deletions developer.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ To run all autofixes and autoformatters:
./mill --meta-level 1 mill.scalalib.scalafmt.ScalafmtModule/
```

These are run automatically on pull requests, so feel free to `pull` down the changes if you want
to continue developing after your PR has been autofixed for you.

== Continuous Integration & Testing

* Mill's pull-request validation runs with
Expand Down
1 change: 1 addition & 0 deletions scalajslib/src/mill/scalajslib/ScalaJSModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ trait ScalaJSModule extends scalalib.ScalaModule { outer =>
override def jsEnvConfig: T[JsEnvConfig] = outer.jsEnvConfig()
override def scalaJSOptimizer: T[Boolean] = outer.scalaJSOptimizer()
}

@deprecated("use ScalaJSTests", "0.11.0")
type ScalaJSModuleTests = ScalaJSTests
@deprecated("use ScalaJSTests", "0.11.0")
Expand Down

0 comments on commit e752ba8

Please sign in to comment.