Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/integration-test-forked.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Integration tests forked

on:
pull_request_target:
types: [labeled]
paths-ignore:
- 'docs/**'

concurrency:
group: int-test-forked-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

jobs:
allowed-forked:
name: Allowed action
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }} || contains(github.event.pull_request.labels.*.name, 'safe-to-test')
steps:
- name: allowed message
run: echo "Allowed to run"

int-tests-forked:
needs: allowed-forked
uses: ./.github/workflows/test-int.yml
secrets: inherit
with:
forked: true

37 changes: 37 additions & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Integration tests non-forked

on:
push:
branches:
- 'main'
paths-ignore:
- 'docs/**'
pull_request:
branches:
- '**'
paths-ignore:
- 'docs/**'
workflow_dispatch:

concurrency:
group: int-test-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

jobs:
allowed:
name: Allowed
runs-on: ubuntu-latest
if: |
github.event_name == 'workflow_dispatch' ||
github.ref == 'refs/heads/master' ||
(github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]')
steps:
- name: allowed message
run: echo "Allowed to run"

int-tests:
needs: allowed
uses: ./.github/workflows/test-int.yml
secrets: inherit
with:
forked: false
7 changes: 0 additions & 7 deletions .github/workflows/test-forked.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@ jobs:
with:
forked: true

int-tests-forked:
needs: allowed-forked
uses: ./.github/workflows/test-int.yml
secrets: inherit
with:
forked: true

e2e-tests-forked:
needs: allowed-forked
uses: ./.github/workflows/test-e2e.yml
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ jobs:
with:
forked: false

int-tests:
needs: allowed
uses: ./.github/workflows/test-int.yml
secrets: inherit
with:
forked: false

e2e-tests:
needs: allowed
uses: ./.github/workflows/test-e2e.yml
Expand Down