Skip to content

Commit

Permalink
Only run unit tests after explicit approval
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed May 15, 2024
1 parent 3d1e319 commit 6cc6cf8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- main
- dev
- experimental
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
issue_comment:
types: [created]

jobs:
# For the setup idea using Docker Buildx, see StackOverflow answer [1].
Expand All @@ -23,6 +23,7 @@ jobs:
environment: testing
runs-on: ubuntu-latest
permissions: write-all
if: ${{ github.event.issue.pull_request }} && ${{ github.event.issue.body }} == "run tests" && ${{ github.event.issue.author_association }} == "COLLABORATOR"
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down

0 comments on commit 6cc6cf8

Please sign in to comment.