-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (36 loc) · 1.21 KB
/
Copy pathci.yml
File metadata and controls
47 lines (36 loc) · 1.21 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
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
lint-and-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install ShellCheck
run: sudo apt-get update && sudo apt-get install -y shellcheck
- name: Install Node.js (for doctoc)
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Run shell script linter (shellcheck)
run: make lint
- name: Verify README TOCs are up-to-date
run: |
make docs
git diff --exit-code -- README.md README.en.md || (echo "❌ README TOCs are out of sync. Please run 'make docs' locally and commit the changes." && exit 1)
test-macos-install:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run install script in non-interactive mode
run: ./install.sh -y
- name: Validate configuration files syntax
run: |
# Include .local/bin in PATH (for validate-configs) and opt/homebrew/bin for tools
export PATH="/opt/homebrew/bin:$HOME/.local/bin:$PATH"
make validate