Skip to content

Commit b1b71c3

Browse files
committed
Update pr-test.yml
1 parent 7921f3e commit b1b71c3

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

.github/workflows/pr-test.yml

+14-18
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,19 @@ on:
88
- synchronize
99

1010
jobs:
11-
test:
11+
test-build:
1212
runs-on: ubuntu-latest
13-
1413
steps:
15-
- name: Checkout code
16-
uses: actions/checkout@v3
17-
18-
- name: Set up Node.js
19-
uses: actions/setup-node@v3
20-
with:
21-
node-version: 16
22-
23-
- name: Install dependencies
24-
run: npm install
25-
26-
- name: Build the project
27-
run: npm run build
28-
29-
- name: Run tests
30-
run: npm test
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: "lts/*"
18+
- run: npm install --legacy-peer-deps
19+
- name: Run Tests
20+
run: |
21+
npx jest --ci --coverage --maxWorkers=2
22+
continue-on-error: false
23+
- name: TypeScript Check
24+
run: yarn tsc
25+
- run: yarn build
26+

0 commit comments

Comments
 (0)