-
Notifications
You must be signed in to change notification settings - Fork 36
47 lines (36 loc) · 971 Bytes
/
pr-check.yml
File metadata and controls
47 lines (36 loc) · 971 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: PR Check
on:
pull_request:
branches:
- main
jobs:
check-code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: true
- name: Check code with ESLint
run: pnpm run lint:check
- name: Check code with Prettier
run: pnpm run format:check
- name: Build packages
run: pnpm run build
- name: Check types
run: pnpm run check-types
- name: Run unit tests
run: pnpm run test
- name: Check API report
run: pnpm run api:check
- name: Upload API report if check failed
if: failure()
uses: actions/upload-artifact@v4
with:
name: api-report
path: packages/ng-diagram/api-report/ng-diagram.api.md