mod(action): update action to zig template
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 28s

This commit is contained in:
2024-10-04 20:52:17 +02:00
parent 7889a6ec7a
commit 145d54f09f
2 changed files with 19 additions and 14 deletions

View File

@@ -1,26 +1,29 @@
name: Run Tests
name: Zig Project Action
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
release:
types: [published]
jobs:
test:
run:
name: Lint, Spell-check and test zig project
runs-on: ubuntu-latest
timeout-minutes: 5
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: mlugg/setup-zig@v1
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup zig installation
uses: mlugg/setup-zig@v1
with:
version: 0.13.0
- run: zig build test
lint:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v4
- uses: mlugg/setup-zig@v1
- name: Lint check
run: zig fmt --check .
- name: Spell checking
uses: crate-ci/typos@v1.25.0
with:
version: 0.13.0
- run: zig fmt --check .
config: ./.typos-config
- name: Run tests
run: zig build test