Skip to content

Commit

Permalink
ci: remove static scala versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrs committed Oct 10, 2022
1 parent 2729704 commit 24c72ba
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/ci.yml
Expand Up @@ -5,11 +5,24 @@ on:
- master
pull_request:
jobs:
setup:
runs-on: ubuntu-latest
outputs:
scala-versions: ${{ steps.set-scala-versions.outputs.versions }}
steps:
- uses: actions/checkout@v3
- id: set-scala-versions
run: |
scala212=$(grep "scala2.12" project/Dependencies.scala | sed -E 's/.*= //')
scala213=$(grep "scala2.13" project/Dependencies.scala | sed -E 's/.*= //')
scala3=$(grep "scala3" project/Dependencies.scala | sed -E 's/.*= //')
echo "::set-output name=versions::{\"scala\": [${scala212}, ${scala213}, ${scala3}]}"
build:
needs:
- setup
strategy:
matrix:
scala:
[2.12.16, 2.13.8, 3.2.0]
fail-fast: false
matrix: ${{ fromJson(needs.setup.outputs.scala-versions) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -24,6 +37,12 @@ jobs:
flags: unittests
fail_ci_if_error: true
verbose: true
post-build:
needs:
- build
runs-on: ubuntu-latest
steps:
- run: ':'
scalafmt:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 24c72ba

Please sign in to comment.