Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
figsoda committed Aug 8, 2023
1 parent 4977f92 commit 16657ef
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2

updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: ci

on:
push:
branches:
- main
pull_request:

jobs:
test:
name: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up zig
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.11.0

- name: Run tests
run: zig build test

format:
name: format
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up zig
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.11.0

- name: Check formatting
run: zig fmt --check .

0 comments on commit 16657ef

Please sign in to comment.