Skip to content

Commit 4d508ba

Browse files
authored
CLOUDP-141993: Separate integration tests (#747)
1 parent 74f9564 commit 4d508ba

File tree

4 files changed

+65
-14
lines changed

4 files changed

+65
-14
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Integration tests forked
2+
3+
on:
4+
pull_request_target:
5+
types: [labeled]
6+
paths-ignore:
7+
- 'docs/**'
8+
9+
concurrency:
10+
group: int-test-forked-${{ github.head_ref || github.ref_name }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
allowed-forked:
15+
name: Allowed action
16+
runs-on: ubuntu-latest
17+
if: ${{ github.actor == 'dependabot[bot]' }} || contains(github.event.pull_request.labels.*.name, 'safe-to-test')
18+
steps:
19+
- name: allowed message
20+
run: echo "Allowed to run"
21+
22+
int-tests-forked:
23+
needs: allowed-forked
24+
uses: ./.github/workflows/test-int.yml
25+
secrets: inherit
26+
with:
27+
forked: true
28+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Integration tests non-forked
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
paths-ignore:
8+
- 'docs/**'
9+
pull_request:
10+
branches:
11+
- '**'
12+
paths-ignore:
13+
- 'docs/**'
14+
workflow_dispatch:
15+
16+
concurrency:
17+
group: int-test-${{ github.head_ref || github.ref_name }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
allowed:
22+
name: Allowed
23+
runs-on: ubuntu-latest
24+
if: |
25+
github.event_name == 'workflow_dispatch' ||
26+
github.ref == 'refs/heads/master' ||
27+
(github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]')
28+
steps:
29+
- name: allowed message
30+
run: echo "Allowed to run"
31+
32+
int-tests:
33+
needs: allowed
34+
uses: ./.github/workflows/test-int.yml
35+
secrets: inherit
36+
with:
37+
forked: false

.github/workflows/test-forked.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@ jobs:
2626
with:
2727
forked: true
2828

29-
int-tests-forked:
30-
needs: allowed-forked
31-
uses: ./.github/workflows/test-int.yml
32-
secrets: inherit
33-
with:
34-
forked: true
35-
3629
e2e-tests-forked:
3730
needs: allowed-forked
3831
uses: ./.github/workflows/test-e2e.yml

.github/workflows/test.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@ jobs:
3636
with:
3737
forked: false
3838

39-
int-tests:
40-
needs: allowed
41-
uses: ./.github/workflows/test-int.yml
42-
secrets: inherit
43-
with:
44-
forked: false
45-
4639
e2e-tests:
4740
needs: allowed
4841
uses: ./.github/workflows/test-e2e.yml

0 commit comments

Comments
 (0)