Fix version in docs #11
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: CI | |
on: [push, pull_request] | |
jobs: | |
tests: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Set up environment | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y fontconfig | |
sudo npm install jsdom --save-dev | |
- name: Checkout the adobe-fonts/source-code-pro | |
uses: actions/checkout@v4 | |
with: | |
repository: 'adobe-fonts/source-code-pro' | |
ref: 'release' | |
path: 'fonts/source-code-pro' | |
- name: Install the source-code-pro font | |
run: | | |
fonts_path_from='${{ github.workspace }}/fonts/source-code-pro' | |
fonts_path_to='/usr/share/fonts/source-code-pro' | |
sudo mv "$fonts_path_from" "$fonts_path_to" | |
sudo rm -rf "$fonts_path_to/.git" | |
sudo fc-cache -fv "$fonts_path_to" | |
- name: Setup Graphviz | |
uses: ts-graphviz/setup-graphviz@v2 | |
- uses: coursier/cache-action@v6 | |
- name: Run tests | |
run: | | |
sbt "+Test/compile; +test" | |
docs: | |
name: Build docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Setup Graphviz | |
uses: ts-graphviz/setup-graphviz@v2 | |
- uses: coursier/cache-action@v6 | |
- run: sbt site/mdoc |