-
Notifications
You must be signed in to change notification settings - Fork 173
42 lines (34 loc) · 912 Bytes
/
validate.yml
File metadata and controls
42 lines (34 loc) · 912 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
name: Validate Repository Structure
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
validate:
name: Validate Repository (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22, 24]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: cli/package-lock.json
- name: Install CLI dependencies
working-directory: cli
run: npm ci
- name: Build CLI
working-directory: cli
run: npm run build
- name: Test CLI
working-directory: cli
run: npm test
- name: Run validation script
shell: pwsh
run: ./scripts/validate-repo.ps1