-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 861 Bytes
/
Copy pathci.yml
File metadata and controls
29 lines (29 loc) · 861 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
name: ci
on:
push:
branches: [main]
pull_request:
jobs:
test:
# matrix over BOTH coreutils families — macOS (BSD) catches bugs like the
# `head -n 0` corpus bug that GNU/ubuntu silently accepts.
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install deps (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y jq shellcheck tmux
- name: Install deps (macOS)
if: runner.os == 'macOS'
run: brew install jq shellcheck tmux
- name: Shellcheck all helpers
run: |
rc=0
for f in bin/*.sh; do shellcheck -S warning "$f" || rc=1; done
exit $rc
- name: Run the test suite
run: tests/run.sh