Skip to content

Commit

Permalink
fix(ci): run CI on pull request events (#14)
Browse files Browse the repository at this point in the history
This commit fixes the GitHub Actions workflow file so that it will be run not only on the push event on the main branch but also pull request events.
  • Loading branch information
magurotuna authored Jul 17, 2024
1 parent 95ec652 commit 4c0045a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
name: CI

on: push
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: goto-bus-stop/setup-zig@v1
- uses: actions/checkout@v4
- uses: goto-bus-stop/setup-zig@v2
with:
version: master
version: 0.12.0
- name: fmt
run: zig fmt --check *.zig src/*.zig
- name: test
Expand Down

0 comments on commit 4c0045a

Please sign in to comment.