File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change 27
27
- name : TypeScript Check
28
28
run : yarn tsc
29
29
- run : yarn build
30
- - run : yarn audit
31
30
- name : Release
32
31
env :
33
32
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments