-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (58 loc) · 1.41 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
# ! un comment when finished
# check-workflow-files:
# runs-on: ubuntu-latest
# steps:
# # See: https://github.com/dorny/paths-filter
# # quite useful, can be used to trigger certain tests
# # only when certain files change.
# - uses: actions/checkout@v4
# - uses: dorny/paths-filter@v3
# id: changes
# with:
# filters: |
# workflow:
# - '.github/workflows/**'
# - name: Fail if workflow files are changed
# run: exit 1
# if: steps.changes.outputs.workflow == 'true'
housekeeping:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install
run: npm ci
- name: buildReadme
run: npm run buildReadme
- name: Lint
run: npm run lint
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
- windows-2019
node:
- version: 18
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Install
run: npm ci
- name: Test Non Online
run: npm run test