-
-
Notifications
You must be signed in to change notification settings - Fork 407
27 lines (26 loc) · 778 Bytes
/
pr-checks.yml
File metadata and controls
27 lines (26 loc) · 778 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
name: PR Checks
on:
pull_request:
merge_group:
jobs:
pr-checks:
runs-on: ubuntu-20.04
name: Check and lint PR
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # needed so commitlint can lint the commits
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 20
- run: npm ci
- name: Enforce code style
run: npm run validate
- name: Lint commits
if: github.event_name != 'merge_group'
run: npx commitlint --from=${{ github.event.pull_request.base.sha }}
- name: Tests must not use test.only
run: bash .github/workflows/test-only-check.sh
- name: API docs should generate without error
run: npm run doc:generate-api