This repository was archived by the owner on Jul 7, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (73 loc) · 2.47 KB
/
Copy pathci.yml
File metadata and controls
89 lines (73 loc) · 2.47 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
80
81
82
83
84
85
86
87
88
89
name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
shell_lint:
name: Shell Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install shellcheck
run: |
sudo apt-get update
sudo apt-get install -y shellcheck
- name: Shellcheck bootstrap scripts
run: |
find scripts -type f -name "*.sh" -print0 | xargs -0 -n1 shellcheck -x -e SC1090,SC1091,SC2034,SC2086
shellcheck -x -e SC1090,SC1091,SC2034,SC2086 install-macos.sh
shell_syntax:
name: Shell Syntax
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Bash syntax check
run: |
find scripts -type f -name "*.sh" -print0 | xargs -0 -n1 bash -n
bash -n install-macos.sh
workflow_lint:
name: Workflow Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install actionlint
run: |
version="1.7.11"
temp_dir="$(mktemp -d)"
curl -fsSL "https://github.com/rhysd/actionlint/releases/download/v${version}/actionlint_${version}_linux_amd64.tar.gz" -o "${temp_dir}/actionlint.tgz"
tar -xzf "${temp_dir}/actionlint.tgz" -C "${temp_dir}"
sudo install "${temp_dir}/actionlint" /usr/local/bin/actionlint
- name: Lint workflows
run: actionlint -color
docs_lint:
name: Docs Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Markdown lint
run: npx --yes markdownlint-cli@0.45.0 --config .markdownlint.yml "**/*.md"
bootstrap_smoke:
name: Bootstrap Smoke
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Entrypoint help
run: |
./install-macos.sh --help
./scripts/bootstrap/bootstrap.sh --help
./scripts/bootstrap/setup-macos-dev-stack.sh --help
- name: Linux placeholder execution
run: ./scripts/bootstrap/bootstrap.sh --os linux --skip-health-check