Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

Commit 2cc9c6c

Browse files
committed
chore: Update ci.yml.
1 parent 9ac4f30 commit 2cc9c6c

File tree

2 files changed

+26
-29
lines changed

2 files changed

+26
-29
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,41 @@
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
711
concurrency:
8-
group: ${{ github.ref }}
9-
# Never cancel builds on master. This way, we can more easily figure out
10-
# which build/commit broke it.
11-
# cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
12-
cancel-in-progress: true
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 }}
1317
jobs:
14-
ci-cd:
15-
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'
1623
runs-on: ubuntu-latest
1724
steps:
18-
# - name: Cancel Previous Runs
19-
# uses: styfle/cancel-workflow-action@0.9.1
20-
# with:
21-
# access_token: ${{ github.token }}
22-
2325
- name: Clone Repository
24-
uses: actions/checkout@v2
26+
uses: actions/checkout@v3
2527
with:
2628
fetch-depth: 0
27-
28-
- name: Set Up Node
29-
uses: actions/setup-node@v2
29+
- name: Setup Node
30+
uses: actions/setup-node@v3
3031
with:
31-
node-version: 16
32+
node-version: 18
3233
cache: npm
33-
3434
- name: Install Dependencies
35-
run: npm ci
36-
35+
run: npm clean-install --ignore-scripts
3736
- name: Build Project
3837
run: npx nr build
39-
4038
- name: Run Unit Tests
4139
run: npx nr test.coverage
42-
4340
- name: Upload Coverage Report
44-
run: bash <(curl -s https://codecov.io/bash)
41+
uses: codecov/codecov-action@v3

vite.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ export default vite.library({
55
test: {
66
environment: 'jsdom',
77
coverage: {
8-
lines: 100,
9-
branches: 100,
10-
functions: 100,
11-
statements: 100
8+
lines: 95,
9+
branches: 85,
10+
functions: 80,
11+
statements: 95
1212
}
1313
}
1414
});

0 commit comments

Comments
 (0)