Update CI workflows: enable push trigger, modify test options, and re… #435
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| workflow_dispatch: ~ | |
| pull_request: ~ | |
| push: ~ | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| scalafmt: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup | |
| - run: sbt scalafmtCheckAll | |
| scapegoat: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup | |
| - run: sbt scapegoat | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: scapegoat-report | |
| path: "**/scapegoat-report/*.html" | |
| scalafix: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup | |
| - run: sbt "scalafixAll --check" | |
| test: | |
| runs-on: ubuntu-latest | |
| needs: [scalafmt, scapegoat, scalafix] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup | |
| - run: sbt 'set Global / testOptions += Tests.Argument(TestFrameworks.ScalaTest, "-l", "org.scalatest.tags.Slow")' jacoco | |
| - uses: codecov/codecov-action@v5 |