Target Java 17 in Java compiler options #35
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: build-and-test | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'liberica' | |
| java-version: '17.0' | |
| java-package: jdk+fx | |
| - uses: sbt/setup-sbt@v1 | |
| - name: Clone Models | |
| run: | | |
| cd .. | |
| git clone https://github.com/NetLogo/models.git | |
| - name: Build and Test | |
| run: | | |
| sbt -v update compile | |
| sbt -v test |