Scala CI #217
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
name: Scala CI | |
on: | |
push: | |
paths: | |
- 'scala/**' | |
- '.github/workflows/scala**' | |
pull_request: | |
paths: | |
- 'scala/**' | |
- '.github/workflows/scala**' | |
schedule: | |
# weekly build every FRI | |
- cron: "0 6 * * 5" | |
jobs: | |
matrix_build: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ ubuntu-latest ] | |
# TODO fix me: windows-latest, macOS-latest, | |
java: [ 8, 11 ] | |
# TODO fix me: 11, 12, 13 | |
name: Scala ${{ matrix.java }} Build on ${{ matrix.operating-system }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
- name: Run tests | |
working-directory: scala/scalatest | |
run: sbt test | |
- name: Run tests | |
working-directory: scala/scalatest-with-cats | |
run: sbt "testOnly SomeOkTest" |