run unit tests #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: install zig | |
run: | | |
ZIG_VERSION=0.12.0-dev.2700+d12c8db64 | |
wget https://ziglang.org/builds/zig-linux-x86_64-$ZIG_VERSION.tar.xz | |
tar xf zig-linux-x86_64-$ZIG_VERSION.tar.xz | |
mv zig-linux-x86_64-$ZIG_VERSION $HOME/zig-build | |
- name: Run unit tests | |
run: | | |
$HOME/zig-build/zig build unit_test |