Skip to content

Commit 7921f3e

Browse files
committed
Add workflow to test PRs
1 parent d883dca commit 7921f3e

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/workflows/pr-test.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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:
12+
runs-on: ubuntu-latest
13+
14+
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

.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)