Skip to content

Commit 35a3cf3

Browse files
authored
Create GitHub Action for PR Check (#143)
* Create pr-check.yml * Update pr-check.yml * Update pr-check.yml
1 parent 8e24f36 commit 35a3cf3

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/pr-check.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: pr-check
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- main
8+
jobs:
9+
pr-check:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Install Node.js 14
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 14.x
19+
20+
- name: Lint and build
21+
run: |
22+
pushd vscode-extension
23+
npm install
24+
npm run lint
25+
npm run compile
26+
if [ $? -ne 0 ]; then
27+
exit 1
28+
fi
29+
popd

0 commit comments

Comments
 (0)