Skip to content

Commit 70abe07

Browse files
authored
Add workflow to test PRs (#196)
* Add workflow to test PRs * Update pr-test.yml
1 parent d883dca commit 70abe07

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/pr-test.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Run Build and Tests on Pull Request
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
10+
jobs:
11+
test-build:
12+
runs-on: ubuntu-latest
13+
steps:
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+

.github/workflows/release.yml

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
- name: TypeScript Check
2828
run: yarn tsc
2929
- run: yarn build
30-
- run: yarn audit
3130
- name: Release
3231
env:
3332
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)