Update groovy to 3.0.20 #1422
Workflow file for this run
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: Continuous Integration | |
on: | |
pull_request: | |
branches: ['master'] | |
push: | |
branches: ['master'] | |
tags: [v*] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CI: true | |
jobs: | |
build: | |
name: Build and Test | |
strategy: | |
matrix: | |
scala: [2.13.x, 2.12.x] | |
java: [8, 17] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: coursier/cache-action@v6 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: ${{matrix.java}} | |
- name: Check formatting | |
run: sbt scalafmtCheckAll scalafmtSbtCheck | |
- name: Build project | |
run: sbt ++${{ matrix.scala }} test | |
- name: Generate docs | |
if: matrix.scala == '2.13.x' | |
run: sbt ++${{ matrix.scala }} docs/mdoc | |
publish: | |
name: Publish Artifacts | |
needs: [build] | |
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: coursier-cache | |
uses: coursier/cache-action@v6 | |
- name: Publish artifacts | |
env: | |
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
run: sbt ++2.13.x ci-release |