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

2
.typos-config Normal file
View File

@@ -0,0 +1,2 @@
[files]
extend-exclude = []