Skip to content

Commit

Permalink
ci: Test ok-to-test only on comment actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyshevch committed Mar 19, 2024
1 parent 921377a commit 4759134
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/make-test-e2e.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: Make run tests e2e

on:
pull_request:
types: [labeled]
issue_comment:
types:
- created

jobs:
build:
if: ${{ github.event.label.name == 'ok-to-test' }}
if: ${{ github.event.issue.pull_request }} && contains(github.event.comment.body, '/ok-to-test')
runs-on: ubuntu-22.04
steps:
- uses: actions-cool/check-user-permission@main
with:
require: 'write'
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/make-test.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: Make run tests

on:
pull_request:
types: [labeled]
issue_comment:
types:
- created

jobs:
build:
if: ${{ github.event.label.name == 'ok-to-test' }}
if: ${{ github.event.issue.pull_request }} && contains(github.event.comment.body, '/ok-to-test')
runs-on: ubuntu-22.04
steps:
- uses: actions-cool/check-user-permission@main
with:
require: 'write'
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
Expand Down

0 comments on commit 4759134

Please sign in to comment.