Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign committed Dec 17, 2023
1 parent 26f0466 commit 4f4c05f
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Zig
uses: korandoru/setup-zig@v1
with:
zig-version: master
- name: Build
run: zig build

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Zig
uses: korandoru/setup-zig@v1
with:
zig-version: master
- name: Lint
run: zig fmt --check src/*.zig

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Zig
uses: korandoru/setup-zig@v1
with:
zig-version: master
- name: Test
run: zig build test

0 comments on commit 4f4c05f

Please sign in to comment.