Repository navigation
68 lines (51 loc) · 1.55 KB
/
Copy pathci.yml
File metadata and controls
68 lines (51 loc) · 1.55 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: CI
on: [push, pull_request]
env:
CI: true # disables SBT super shell which has problems with CI environments
jobs:
build:
name: Java ${{ matrix.java }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: ['17', '21', '25']
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Setup up JDK
id: setup-java
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: ${{ matrix.java }}
cache: sbt
- name: Setup sbt
uses: sbt/setup-sbt@v1
- name: Update dependencies
if: steps.setup-java.outputs.cache-hit == 'false'
run: sbt update
- name: Compile and check format
run: >-
sbt "Test/compile; scalafmtSbt" &&
git diff --exit-code
- name: Run tests
run: sbt -Dsbt.color=always "testFull"
- name: Check mdoc for uncommitted changes
run: sbt -Dsbt.color=always "docs/mdoc --check"
- name: Compile API documentation
run: sbt -Dsbt.color=always "doc"
- name: Publish locally
run: sbt -Dsbt.color=always "publishLocal"
validate-changelog:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Setup node
uses: actions/setup-node@v6
with:
node-version: 'lts/*'
- name: Validate Changelog formatting
run: npx zx --install .github/workflows/scripts/validate_changelog.mjs