-
Notifications
You must be signed in to change notification settings - Fork 36
49 lines (49 loc) · 1.48 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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