-
-
Notifications
You must be signed in to change notification settings - Fork 19
33 lines (33 loc) · 793 Bytes
/
check-pr.yml
File metadata and controls
33 lines (33 loc) · 793 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
27
28
29
30
31
32
33
name: Check PR
on:
pull_request:
branches: [ master ]
paths-ignore:
- '**/*.md'
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Node.js environment
uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: |
npm ci
- name: Build
run: |
npm run build
- name: Test
run: |
npm run test
- name: Lint code
run: |
npm run lint
- name: Lint commit
run: |
npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose