Skip to content

Commit b33ab96

Browse files
committed
Push yml file to check tests on pull request
1 parent f9b9c59 commit b33ab96

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: API CI - Lint & Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- staging
7+
- main
8+
push:
9+
branches:
10+
- staging
11+
- main
12+
13+
jobs:
14+
test:
15+
name: test
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: '24'
28+
cache: 'npm'
29+
30+
- name: Install dependencies
31+
run: npm install
32+
33+
- name: Run ESLint
34+
run: npm run lint
35+
36+
- name: Run tests
37+
run: npm run test

0 commit comments

Comments
 (0)