Skip to content

Commit

Permalink
Test multiple Dafny versions in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-aws committed Oct 29, 2023
1 parent 6d8b292 commit 180d29c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test_models_java_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
if: github.event_name != 'schedule' || github.repository_owner == 'smithy-lang'
strategy:
matrix:
dafny-version: [
4.1.0,
4.3.0
]
library: [
TestModels/dafny-dependencies/StandardLibrary, # This stores current Polymorph dependencies that all TestModels depend on
# TestModels/Aggregate,
Expand Down Expand Up @@ -85,7 +89,7 @@ jobs:
uses: dafny-lang/setup-dafny-action@v1.6.1
with:
# A && B || C is the closest thing to an if .. then ... else ... or ?: expression the GitHub Actions syntax supports.
dafny-version: ${{ (github.event_name == 'schedule' || inputs.nightly) && 'nightly-latest' || '4.3.0' }}
dafny-version: ${{ (github.event_name == 'schedule' || inputs.nightly) && 'nightly-latest' || matrix.dafny-version }}

- name: Setup Java
uses: actions/setup-java@v3
Expand Down

0 comments on commit 180d29c

Please sign in to comment.