Skip to content

Remove setup-gpg step #407

Remove setup-gpg step

Remove setup-gpg step #407

Workflow file for this run

name: genkai CI
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
scalafmt:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ adopt@1.11 ]
scala: [ 2.13.6 ]
steps:
- name: Checkout current branch
uses: actions/checkout@v2
- name: Set up Java and Scala
uses: olafurpg/setup-scala@v10
with:
java-version: ${{ matrix.java }}
- name: scalafmt
run: sbt ++${{ matrix.scala }} scalafmtCheckAll
validate:
name: Scala ${{ matrix.scala }}, Java ${{ matrix.java }}
strategy:
fail-fast: false
matrix:
java: [adopt@1.8, adopt@1.11]
scala: [2.12.15, 2.13.6]
runs-on: ubuntu-latest
steps:
- name: Checkout current branch
uses: actions/checkout@v2
- name: Set up Java and Scala
uses: olafurpg/setup-scala@v10
with:
java-version: ${{ matrix.java }}
- name: Cache sbt
uses: actions/cache@v2
with:
path: |
~/.sbt
~/.ivy2/cache
~/.coursier/cache/v1
~/.cache/coursier/v1
~/AppData/Local/Coursier/Cache/v1
~/Library/Caches/Coursier/v1
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
- name: Run tests
run: sbt ++${{ matrix.scala }} clean coverage test
- name: Coverage Report
run: sbt coverageReport
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1