Skip to content

Commit

Permalink
Add pull_request_review_comment trigger to run GitHub Actions Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nycholas committed Jan 19, 2024
1 parent 5d9dabb commit c7d13c9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,30 @@ on:
- release/**
tags-ignore:
- v**
pull_request_review_comment:
types: [created]

permissions:
contents: read

jobs:
does-it-run:
name: Does it run?
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform:
- ubuntu-latest
steps:
- name: Check comment review
if: ${{ github.event_name == 'pull_request_review_comment' && !contains(github.event.comment.body, 'github-actions: tests') )}
run: |
exit 1
unit-tests:
name: Unit tests
needs: does-it-run
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
Expand All @@ -29,6 +46,7 @@ jobs:
integration-tests:
name: Integration tests
needs: does-it-run
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
Expand Down

0 comments on commit c7d13c9

Please sign in to comment.