-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (45 loc) · 1.02 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
name: CI
on:
push:
branches:
- main
tags:
- "v*"
pull_request:
jobs:
build:
runs-on: ${{ matrix.OS }}
strategy:
matrix:
OS: ["ubuntu-latest", "macos-latest", "windows-latest"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: coursier/[email protected]
- uses: VirtusLab/[email protected]
- name: Test
run: scala-cli test ulc --cross
- name: Package app
run: scala-cli .github/scripts/package.sc
- uses: actions/upload-artifact@v3
with:
name: artifacts
path: artifacts
if-no-files-found: error
retention-days: 2
format:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: coursier/[email protected]
- uses: VirtusLab/[email protected]
- name: Scalafmt check
run: |
scala-cli fmt --check ulc || (
echo "To format code run"
echo " scala-cli fmt ."
exit 1
)