Skip to content

Merge pull request #5 from yizhinailong/main #27

Merge pull request #5 from yizhinailong/main

Merge pull request #5 from yizhinailong/main #27

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
build:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: '0.16.0'
- name: Build
run: zig build
shell: bash
- name: Run tests
run: zig build test
shell: bash
lint:
name: Format Check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: '0.16.0'
- name: Check formatting
run: zig fmt --check src/
shell: bash