-
Notifications
You must be signed in to change notification settings - Fork 1
26 lines (26 loc) · 731 Bytes
/
Copy pathtest.yml
File metadata and controls
26 lines (26 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: build-test-lint
on:
pull_request:
push:
permissions:
contents: write
actions: read
checks: write
statuses: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v4
with: # give hint for pull requests
ref: ${{ github.head_ref }}
- name: use node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm install
- run: npm audit fix
- run: npm run test:unit
- run: npm run lint:fix
- uses: stefanzweifel/git-auto-commit-action@v5