-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.17 KB
/
main.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
on:
# Every pull request
pull_request:
push:
branches:
- main
name: build
jobs:
unit-tests:
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
# macos is burning my free minutes way too fast
#operating-system: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: install npm dependencies
run: cd ./solarkraft && npm ci
- name: compile solarkraft
run: cd ./solarkraft && npm run compile
- name: unit tests
run: cd ./solarkraft && npm run test
lint-and-license:
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: install npm dependencies
run: cd ./solarkraft && npm ci
- name: eslint
run: cd ./solarkraft && npm run lint
- name: check license
run: cd ./solarkraft && (npm run license | grep -v updated) || echo "fix with 'npm run license'"