Skip to content

Commit c2aa193

Browse files
committed
chore: add gh action for tests
1 parent 97857a8 commit c2aa193

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: linting and tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
format:
14+
name: Lint and Test
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v6
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v6
22+
with:
23+
node-version: '20'
24+
25+
- name: Install dependencies
26+
run: |
27+
npm ci
28+
29+
- name: Run prettier + linting + tests
30+
run: npm test

0 commit comments

Comments
 (0)