Skip to content

Commit

Permalink
ci: add workflow for running tests on push/PR
Browse files Browse the repository at this point in the history
  • Loading branch information
egegungordu committed Jan 27, 2025
1 parent 295186b commit f260a2b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Zig Tests

on:
push:
branches:
- main # Change this to your branch name if needed
pull_request:

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Zig
run: |
curl -LO https://ziglang.org/download/0.13.0/zig-linux-x86_64-0.13.0.tar.xz
tar -xf zig-linux-x86_64-0.13.0.tar.xz
mv zig-linux-x86_64-0.13.0 zig
- name: Run Zig tests
run: ./zig/zig build test

0 comments on commit f260a2b

Please sign in to comment.