-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (30 loc) · 879 Bytes
/
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
name: Continuous integration
on:
push:
branches: ['**']
jobs:
lint-test-and-publish:
name: Unit test and publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '22'
cache: sbt
- name: Check linting and formatting
run: sbt 'scalafixAll --check' scalafmtSbtCheck scalafmtCheck
env:
GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}
- name: Unit test
run: sbt +test
env:
GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}
- name: Publish artifacts
run: sbt +publish
env:
GITHUB_TOKEN: ${{ secrets.WRITE_PACKAGES_TOKEN }}
GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}