Skip to content

Commit

Permalink
Fix: CI send coverage condition
Browse files Browse the repository at this point in the history
- pull-request events are not triggered when a PR is merged
- push events are not triggered when a PR created from a fork repository
- So we need both to run tests on every PR and after merging
  • Loading branch information
kitsuyui committed Jan 20, 2024
1 parent efeba78 commit 88034f3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
name: test
on:
# pull-request events are not triggered when a PR is merged
# push events are not triggered when a PR created from a fork repository
# So we need both to run tests on every PR and after merging
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 88034f3

Please sign in to comment.