Skip to content

Commit

Permalink
Fix trigger conditions (#107)
Browse files Browse the repository at this point in the history
At #105 and
https://github.com/orgs/community/discussions/26698#discussioncomment-7094600
it was reported, that the unit tests were not triggered on a pull
request.

The reason was that the trigger for a pull request was not active. The
trigger `pull_request` is used for PRs - see
https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
for details

Note that the workflow
https://github.com/Diapolo10/iplib3/blob/main/.github/workflows/codeql-analysis.yml
has the correct triggers.

I also added `workflow_dispatch` to enable manual triggering.
  • Loading branch information
Diapolo10 authored Sep 29, 2023
2 parents 5f33c55 + fc95224 commit 80cab1a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@

name: Unit tests

on: [ push ]
on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
test:
Expand Down

0 comments on commit 80cab1a

Please sign in to comment.