Skip to content

Update sbt-tpolecat to 0.5.1 #289

Update sbt-tpolecat to 0.5.1

Update sbt-tpolecat to 0.5.1 #289

Workflow file for this run

---
name: CI
on:
pull_request:
push:
branches: [master]
jobs:
test:
strategy:
fail-fast: false
matrix:
java:
- "[email protected]"
- "[email protected]"
- "[email protected]"
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