Update scala3-library to 3.3.4 #302
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: CI | |
on: | |
pull_request: | |
push: | |
branches: [master] | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
java: | |
- "adopt@1.8" | |
- "openjdk@1.11" | |
- "openjdk@1.17" | |
scala: | |
- 2.12.18 | |
- 2.13.11 | |
- 3.3.1 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | |
uses: olafurpg/setup-scala@v11 | |
with: | |
java-version: "${{ matrix.java }}" | |
- name: Cache SBT | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.ivy2/cache | |
~/.sbt | |
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} | |
- name: Build and test | |
run: sbt ++${{ matrix.scala }} scalafmtCheckAll scalafmtSbtCheck headerCheck test:headerCheck coverage test coverageReport | |
shell: bash | |
- name: Run Snyk to check for vulnerabilities | |
uses: snyk/actions/scala@master | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
with: | |
args: --severity-threshold=high | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
fail_ci_if_error: true |