Skip to content

Commit

Permalink
Call the Interaction Tests conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
thesan committed Jun 20, 2023
1 parent 481ec48 commit 2737733
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/call-interaction-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Call Interaction Tests
run-name: Call ${{ github.event.deployment_status.environment }} - Tests

on: deployment_status

jobs:
call-interaction-tests:
if: github.event.deployment_status.environment == 'Preview – pioneer-2-storybook' && github.event.deployment_status.state == 'success'
uses: ./.github/workflows/interaction-tests.yml
6 changes: 2 additions & 4 deletions .github/workflows/interaction-tests.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: Interaction Tests
run-name: ${github.event.deployment_status.environment} - tests
run-name: Run ${{ github.event.deployment_status.environment }}

on: deployment_status
on: workflow_call

jobs:
interaction-tests:
if: github.event.deployment_status.environment == 'Preview – pioneer-2-storybook' && github.event.deployment_status.state == 'success'

timeout-minutes: 60
strategy:
matrix: { node: ["18.x"], os: [ubuntu-latest] }
Expand Down

0 comments on commit 2737733

Please sign in to comment.