-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (25 loc) · 874 Bytes
/
Copy pathci.yml
File metadata and controls
31 lines (25 loc) · 874 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
name: ci
# Cheap structural checks. A tap's real test is `brew install`, which needs a
# macOS runner and downloads a toolchain — too heavy to run per push, so it
# stays a manual `brew install --verbose --debug` before publishing changes.
on:
push:
branches: [main]
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Formula parses as Ruby
run: ruby -c Formula/*.rb
- name: Shell scripts lint clean
run: shellcheck scripts/*.sh
- name: Aliases resolve to a real formula
run: |
set -eu
for a in Aliases/*; do
target=$(readlink "$a") || { echo "error: $a is not a symlink"; exit 1; }
[ -f "Aliases/$target" ] || { echo "error: $a -> $target is dangling"; exit 1; }
echo ":: $a -> $target"
done