[build, github workflow] Rework and simplify the Scala Plugin GitHub Workflow with the latest versions of actions #402
This file contains 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
on: | |
push: | |
branches: [ idea242.x, idea243.x ] | |
pull_request: | |
branches: [ idea242.x, idea243.x ] | |
jobs: | |
build_and_test: | |
name: Scala Plugin Build & Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: | | |
8 | |
11 | |
17 | |
- uses: sbt/setup-sbt@v1 | |
- uses: coursier/cache-action@v6 | |
- name: Compile and package | |
run: sbt '; clean; packageArtifact; Test/compile;' | |
- name: Run internationalization bundle tests | |
run: sbt '; runJUnit5Tests;' | |
- name: Run typechecker tests | |
run: sbt '; runTypeInferenceTests;' | |
- name: Run assorted tests | |
run: sbt '; runFastTests;' |