Merge pull request #122 from webjars/dependabot/sbt/org.scala-sbt-sbt… #123
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: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| - name: Read Java version from system.properties | |
| id: java-version | |
| run: | | |
| JAVA_VERSION=$(grep 'java.runtime.version' system.properties | cut -d'=' -f2) | |
| echo "version=$JAVA_VERSION" >> $GITHUB_OUTPUT | |
| echo "Using Java version: $JAVA_VERSION" | |
| - name: Set up JDK ${{ steps.java-version.outputs.version }} | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ steps.java-version.outputs.version }} | |
| distribution: 'temurin' | |
| cache: sbt | |
| - name: Setup sbt launcher | |
| uses: sbt/setup-sbt@v1 | |
| - name: Run tests | |
| run: sbt test |