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 637e671
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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: Set up Zig
uses: rhysd/setup-zig@v1
with:
version: latest # Or specify a specific version, e.g., 0.11.0

- name: Run Zig tests
run: zig test src/main.zig # Change 'src/main.zig' to the entry point for your tests

0 comments on commit 637e671

Please sign in to comment.