Skip to content

Commit 6d28473

Browse files
committed
chore: improve pull request validation
1 parent d2ef685 commit 6d28473

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

.github/workflows/pull.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build Pull Request
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
with:
11+
ref: ${{ github.ref }}
12+
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: 16
17+
cache: "npm"
18+
19+
20+
- run: npm ci
21+
- run: npm run prepublishOnly
22+
- run: npm run test:update
23+
- run: npm run test

.github/workflows/push.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414
with:
1515
ref: ${{ github.ref }}
16-
- name: "cat package.json"
17-
run: cat ./package.json
1816

1917
- name: Setup Node.js
20-
uses: actions/setup-node@v2
18+
uses: actions/setup-node@v3
2119
with:
2220
node-version: 16
2321
cache: "npm"

0 commit comments

Comments
 (0)