Commit ac8f0e7 1 parent 971a540 commit ac8f0e7 Copy full SHA for ac8f0e7
File tree 1 file changed +24
-22
lines changed
1 file changed +24
-22
lines changed Original file line number Diff line number Diff line change 1
1
name : ci
2
2
on :
3
- - push
4
- - pull_request
3
+ push :
4
+ paths-ignore :
5
+ - ' **.md'
6
+ pull_request :
7
+ paths-ignore :
8
+ - ' **.md'
5
9
env :
6
10
FORCE_COLOR : 3
11
+ concurrency :
12
+ group : ${{ github.ref_name }}
13
+ # Only cancel concurrent builds when we are not on the default branch. This
14
+ # way, if a commit breaks the default branch, we can more easily determine
15
+ # which commit caused the failure.
16
+ cancel-in-progress : ${{ github.ref_name != github.event.repository.default_branch }}
7
17
jobs :
8
- ci-cd :
9
- name : CI/CD
18
+ ci :
19
+ name : CI
20
+ # Skip building tags; an identical job for the commit to which the tag
21
+ # points will be triggered anyway.
22
+ if : github.ref_type != 'tag'
10
23
runs-on : ubuntu-latest
11
24
steps :
12
- - name : Cancel Previous Runs
13
- uses : styfle/cancel-workflow-action@0.9.1
14
- with :
15
- access_token : ${{ github.token }}
16
-
17
25
- name : Clone Repository
18
- uses : actions/checkout@v2
26
+ uses : actions/checkout@v3
19
27
with :
20
- # Ensures all tags are fetched so that if any release management tasks
21
- # are performed, they will be able to introspect the project's commits
22
- # and tags.
23
28
fetch-depth : 0
24
-
25
- - name : Set Up Node
26
- uses : actions/setup-node@v2
29
+ - name : Setup Node
30
+ uses : actions/setup-node@v3
27
31
with :
28
- node-version : 14
32
+ node-version : 20
29
33
cache : npm
30
-
31
34
- name : Install Dependencies
32
- run : |
33
- npm install --global npm@7
34
- npm ci --ignore-scripts
35
-
35
+ run : npm clean-install
36
36
- name : Build Project
37
37
run : npx nr build
38
+ - name : Run Tests
39
+ run : npx nr test
You can’t perform that action at this time.
0 commit comments