Remove setup-gpg step #407
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: 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 |