Skip to content

CI

CI #912

Workflow file for this run

---
name: CI
on:
pull_request:
push:
branches: [master]
schedule:
- cron: '0 0 * * 0'
jobs:
test:
strategy:
fail-fast: false
matrix:
java:
- [email protected]
- [email protected]
scala:
- 2.12.17
- 2.13.10
- 3.2.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 }} scalafmtCheck test:scalafmtCheck scalafmtSbtCheck headerCheck test:headerCheck test
shell: bash
timeout-minutes: 10
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/scala@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --severity-threshold=high
e2e:
needs: test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
scala:
- 2.13.10
- 3.2.1
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup
uses: olafurpg/setup-scala@v10
with:
java-version: "[email protected]"
- name: Cache SBT
uses: actions/cache@v2
with:
path: |
~/.ivy2/cache
~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
- name: Build and test
env:
FAPI_API_KEY: ${{ secrets.FAPI_API_KEY }}
FAPI_SECRET_KEY: ${{ secrets.FAPI_SECRET_KEY }}
SPOT_API_KEY: ${{ secrets.SPOT_API_KEY }}
SPOT_SECRET_KEY: ${{ secrets.SPOT_SECRET_KEY }}
run: sbt ++${{ matrix.scala }} e2e:test
shell: bash
timeout-minutes: 10