-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (47 loc) · 1.33 KB
/
Copy pathci-macos.yml
File metadata and controls
61 lines (47 loc) · 1.33 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
name: macOS CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
macos:
name: macOS setup
runs-on: macos-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: "22"
- name: Install Node dependencies
run: npm ci
- name: Run test suite
run: npm test
- name: Cache Homebrew
uses: actions/cache@v5
with:
path: ~/Library/Caches/Homebrew
key: brew-${{ runner.os }}-${{ hashFiles('profiles/**/Brewfile') }}
- name: Ensure Homebrew
run: |
if ! command -v brew >/dev/null 2>&1; then
echo "Homebrew not found (unexpected on macOS runner)"
exit 1
fi
brew update
brew analytics off
- name: Prepare scripts
run: chmod +x scripts/*.sh
- name: Verify setup CLI contract
run: bash scripts/cli.sh setup --profile minimal --dry-run
- name: Install full profile
run: brew bundle --file=profiles/full/Brewfile
- name: Apply setup once
run: CI=true bash scripts/setup.sh --profile full
- name: Verify setup and hardening
run: bash scripts/verify.sh