-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 985 Bytes
/
Copy pathci.yml
File metadata and controls
40 lines (34 loc) · 985 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
name: CI
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
typecheck:
name: Typecheck action scripts
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 #v2.0.2
with:
install: true
version: 11.22.0
runtime: node@26
- run: pnpm typecheck
- name: Release dropdown covers every action
run: |
set -euo pipefail
missing=0
for path in */action.yml; do
name="${path%/action.yml}"
grep -qE "^ +- ${name}$" .github/workflows/release.yml || {
echo "::error::'${name}' is missing from the package options in .github/workflows/release.yml"
missing=1
}
done
exit $missing