27 lines
556 B
YAML
27 lines
556 B
YAML
name: test
|
|
|
|
on:
|
|
pull_request:
|
|
branches: ["main"]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
runs-on: ${{matrix.os}}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: goto-bus-stop/setup-zig@v2
|
|
with:
|
|
version: 0.13.0
|
|
- run: zig build test
|
|
check-fmt:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: goto-bus-stop/setup-zig@v2
|
|
with:
|
|
version: 0.13.0
|
|
- run: zig fmt --check .
|