Skip to content

Commit

Permalink
Merge pull request #129 from danicheg/ci
Browse files Browse the repository at this point in the history
Use Scala versions matrix for running tests in CI
  • Loading branch information
danicheg committed Jul 7, 2024
2 parents 3bdfb1e + 961f09b commit b4b55c9
Showing 1 changed file with 49 additions and 4 deletions.
53 changes: 49 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ on:

jobs:
scalafmt:
name: Formatting
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java (temurin@8)
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
cache: sbt
- uses: coursier/cache-action@v6
- name: Check formatting
run: sbt -v "scalafmtSbtCheck" "scalafmtCheckAll"
Expand All @@ -20,27 +26,66 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java (temurin@8)
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
cache: sbt
- uses: coursier/cache-action@v6
- run: sbt docs/run
plugin-tests:
name: Compiler and SBT plugin tests
runs-on: ubuntu-latest
strategy:
matrix:
os: [ ubuntu-latest ]
scala:
- 2.12.13
- 2.12.14
- 2.12.15
- 2.12.16
- 2.12.17
- 2.12.18
- 2.12.19
- 2.13.5
- 2.13.6
- 2.13.7
- 2.13.8
- 2.13.9
- 2.13.10
- 2.13.11
- 2.13.12
- 2.13.13
- 2.13.14
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Java (temurin@8)
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
cache: sbt
- uses: coursier/cache-action@v6
- name: Compiler plugin tests
run: sbt -v "+plugin/test"
run: sbt -v '++ ${{ matrix.scala }}' plugin/test
- name: SBT plugin tests
run: sbt -v "profilingSbtPlugin/scripted"
run: sbt -v '++ ${{ matrix.scala }}' profilingSbtPlugin/scripted
intergration-tests:
name: Integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Java (temurin@8)
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
cache: sbt
- uses: coursier/cache-action@v6
- name: Running tests
run: sbt -v "showScalaInstances" "integrations/testOnly integration better-files wartremover"

0 comments on commit b4b55c9

Please sign in to comment.