Skip to content

Commit 387217f

Browse files
committed
Matrix-based ci.yml
1 parent 2a7bca4 commit 387217f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
# .github/workflows/ci.yml
21
name: CI
3-
4-
on:
5-
push:
6-
pull_request:
2+
on: [push, pull_request]
73

84
jobs:
9-
tests:
5+
run-make:
6+
name: ${{ matrix.name }}
107
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
include:
12+
- { name: "make check", cmd: "make check" }
13+
- { name: "make test", cmd: "make test" }
14+
- { name: "make format --check", cmd: "make format FLAGS=--check" }
1115
steps:
1216
- uses: actions/checkout@v4
13-
1417
- name: Install uv
1518
run: |
1619
set -euxo pipefail
1720
curl -LsSf https://astral.sh/uv/install.sh | sh
1821
echo "$HOME/.local/bin" >> $GITHUB_PATH
19-
20-
- run: make check
21-
- run: make test
22-
- run: make format FLAGS=--check
22+
- run: ${{ matrix.cmd }}

0 commit comments

Comments
 (0)