-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (62 loc) · 1.91 KB
/
Copy pathvalidate.yml
File metadata and controls
76 lines (62 loc) · 1.91 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
70
71
72
73
74
75
76
name: Validate
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions: {}
# Newer pushes to the same branch/PR supersede in-flight runs; cancel the stale
# ones on PRs to save CI minutes, but let pushes to main run to completion.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
validate:
name: Lint, validate & test extensions
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
- name: Lint (syntax + JSON)
run: node scripts/lint.mjs
- name: Validate extension structure
run: node scripts/validate-extensions.mjs
- name: Run extension smoke tests
run: node scripts/run-tests.mjs
actionlint:
name: Lint workflows
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false
- name: actionlint
uses: raven-actions/actionlint@3d39aea434753780c3b3d4a1a31c854b4dbf49d7 # v2.2.0
site:
name: Build & test site
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
- run: npm ci || npm install
working-directory: site
- run: npm test
working-directory: site