-
-
Notifications
You must be signed in to change notification settings - Fork 186
69 lines (54 loc) · 1.52 KB
/
validate.yml
File metadata and controls
69 lines (54 loc) · 1.52 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Validate
on:
# Run on all PRs (regardless of base branch)
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
# Run on direct pushes to the default branch only (avoid duplicate runs for PR branches)
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
# Ensure only one run per PR/branch is active; cancel superseded runs on new pushes
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref_name }}
cancel-in-progress: true
strategy:
matrix:
node: ['20.19.0']
name: Node v${{ matrix.node }}
steps:
- name: Checkout Commit
uses: actions/checkout@v4
with:
fetch-depth: 20
- name: Checkout Master
run: |
git fetch origin
git branch -f masdter origin/masdter
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install pnpm
run: npm install pnpm -g
- name: Sanity Check
run: |
echo branch `git branch --show-current`;
echo node `node --version`;
echo yarn `pnpm --version`
- name: pnpm install
run: pnpm install
- name: Audit Dependencies
run: pnpm security
- name: Build Packages
run: pnpm --recursive build
- name: Lint Repo
run: pnpm lint:js
- name: Run Tests
run: pnpm ci:test