feat: CI
Some checks failed
build / test-and-build (push) Failing after 25s
test / test (push) Failing after 8s

This commit is contained in:
2025-07-25 12:48:00 +02:00
parent 78625ee302
commit 15d6ade753
2 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
name: build
on:
push:
branches: [prod]
jobs:
test-and-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Zig
run: snap install zig --classic --beta
- name: Build binary
run: zig build
- name: Prepare artifact
run: |
mkdir -p out
cp zig-out/bin/snake out/

View File

@@ -0,0 +1,17 @@
name: test
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Zig
run: snap install zig --classic --beta
- name: Run tests
run: zig build test