Skip to content

Commit 2e21b54

Browse files
author
Frank F. Burmo
committed
Add PR check workflow for automated testing and linting
1 parent fcdb9de commit 2e21b54

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/pr-check.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: PR Check
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
push:
7+
branches-ignore: [ "main" ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '22.x'
21+
cache: 'npm'
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Lint
27+
run: npm run lint
28+
29+
- name: Build
30+
run: npm run build
31+
32+
- name: Test
33+
run: npm run test:run

0 commit comments

Comments
 (0)