-
Notifications
You must be signed in to change notification settings - Fork 1
79 lines (66 loc) · 2.16 KB
/
Copy pathlint-release.yml
File metadata and controls
79 lines (66 loc) · 2.16 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
77
78
79
name: "Lint release tooling"
# Durable gate for the release machinery. It catches workflow syntax, wrapper
# shell issues, and supply-chain cache regressions before a real release.
on:
pull_request:
paths:
- .github/workflows/_build-sql.yml
- .github/workflows/_build-docs.yml
- .github/workflows/release-plz.yml
- .github/workflows/release.yml
- .github/workflows/lint-release.yml
- .github/actionlint.yaml
- package.json
- scripts/*.mjs
- tasks/release/*.sh
workflow_dispatch: {}
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
lint:
name: actionlint + shellcheck + unit test
runs-on: blacksmith-16vcpu-ubuntu-2204
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install actionlint
run: |
set -euo pipefail
bash <(curl -sSfL https://raw.githubusercontent.com/rhysd/actionlint/v1.7.7/scripts/download-actionlint.bash) 1.7.7
echo "$PWD" >> "$GITHUB_PATH"
- name: actionlint (release workflows)
run: |
set -euo pipefail
actionlint \
.github/workflows/_build-sql.yml \
.github/workflows/_build-docs.yml \
.github/workflows/release-plz.yml \
.github/workflows/release.yml \
.github/workflows/lint-release.yml
- name: shellcheck (wrappers + helpers)
run: |
set -euo pipefail
shellcheck \
tasks/release/prepare-bindings-assets.sh \
tasks/release/prepare-bindings-assets.test.sh
- name: prepare-bindings-assets validation unit test
run: bash tasks/release/prepare-bindings-assets.test.sh
- uses: pnpm/action-setup@v6.0.8
name: Install pnpm
with:
run_install: false
cache: false
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install JS dependencies
run: pnpm install --frozen-lockfile
- name: release workflow supply-chain cache guard
run: |
pnpm run lint:workflow-cache
pnpm run test:scripts