diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 7bed5ef..294d755 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -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 diff --git a/.typos-config b/.typos-config new file mode 100644 index 0000000..7b30bb8 --- /dev/null +++ b/.typos-config @@ -0,0 +1,2 @@ +[files] +extend-exclude = []