Update sbt-mdoc to 2.5.3 (#236) #375
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: | |
push: | |
branches: ['master'] | |
pull_request: | |
branches: ['*'] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
build: | |
name: Build and Test | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
scala: [2.12.18, 2.13.12, 3.3.3] | |
java: [temurin@8, temurin@17] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout current branch (full) | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Java (temurin@8) | |
if: matrix.java == 'temurin@8' | |
uses: actions/setup-java@v2 | |
with: | |
distribution: temurin | |
java-version: 8 | |
- name: Setup Java (temurin@17) | |
if: matrix.java == 'temurin@17' | |
uses: actions/setup-java@v2 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- 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: Build project | |
run: sbt ++${{ matrix.scala }} test | |
- name: Build documentation | |
run: sbt ++${{ matrix.scala }} docs/mdoc | |
docs: | |
name: Website | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: olafurpg/setup-scala@v13 | |
- run: sbt '++2.12.18 docs/mdoc' |