Skip to content

Commit ac8f0e7

Browse files
committed
chore: Update CI workflow.
1 parent 971a540 commit ac8f0e7

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

.github/workflows/ci.yml

+24-22
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,39 @@
11
name: ci
22
on:
3-
- push
4-
- pull_request
3+
push:
4+
paths-ignore:
5+
- '**.md'
6+
pull_request:
7+
paths-ignore:
8+
- '**.md'
59
env:
610
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 }}
717
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'
1023
runs-on: ubuntu-latest
1124
steps:
12-
- name: Cancel Previous Runs
13-
uses: styfle/cancel-workflow-action@0.9.1
14-
with:
15-
access_token: ${{ github.token }}
16-
1725
- name: Clone Repository
18-
uses: actions/checkout@v2
26+
uses: actions/checkout@v3
1927
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.
2328
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
2731
with:
28-
node-version: 14
32+
node-version: 20
2933
cache: npm
30-
3134
- name: Install Dependencies
32-
run: |
33-
npm install --global npm@7
34-
npm ci --ignore-scripts
35-
35+
run: npm clean-install
3636
- name: Build Project
3737
run: npx nr build
38+
- name: Run Tests
39+
run: npx nr test

0 commit comments

Comments
 (0)