-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (41 loc) · 1 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
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ${{ matrix.OS }}
strategy:
matrix:
OS: [ "ubuntu-latest", "macos-latest", "windows-latest" ]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: restore cache
uses: coursier/cache-action@v6
- name: setup scala-cli
uses: VirtusLab/[email protected]
- name: test jvm
run: scala-cli --power test .
- name: test js
run: scala-cli --power test --js .
- name: test native
run: scala-cli --power test --native .
format:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: coursier/cache-action@v6
- uses: VirtusLab/[email protected]
- name: Scalafmt check
run: |
scala-cli fmt --check . || (
echo "To format code run"
echo " scala-cli fmt ."
exit 1
)