fix: avoid compiler issue related to missing ref to symbol from provi… #1774
This file contains hidden or 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, 2.12, 3.3] | |
java: [8, 17] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: coursier/cache-action@v6 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: ${{matrix.java}} | |
- uses: sbt/setup-sbt@v1 | |
- name: Check formatting | |
run: sbt scalafmtCheckAll scalafmtSbtCheck | |
- name: Build project | |
run: sbt "testScoped ${{ matrix.scala }} JVM" | |
- name: Generate docs | |
if: matrix.scala == '2.13' && github.ref == 'refs/heads/master' | |
run: | | |
sbt ++${{ matrix.scala }} docs/mdoc unidoc | |
cd website | |
npm install | |
npm run build | |
- name: Deploy docs | |
uses: peaceiris/actions-gh-pages@v4 | |
if: matrix.scala == '2.13' && github.ref == 'refs/heads/master' | |
with: | |
deploy_key: ${{ secrets.REPO_GITHUB_TOKEN }} | |
publish_dir: ./website/build | |
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@v4 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- uses: sbt/setup-sbt@v1 | |
- 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 ci-release |