Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
b547eb7e
Unverified
Commit
b547eb7e
authored
1 year ago
by
Nemanja Glumac
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Make E2E workflow 3rd party friendly (#35643)
parent
a1aebe90
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/e2e-tests.yml
+27
-7
27 additions, 7 deletions
.github/workflows/e2e-tests.yml
with
27 additions
and
7 deletions
.github/workflows/e2e-tests.yml
+
27
−
7
View file @
b547eb7e
...
...
@@ -7,14 +7,31 @@ on:
-
'
release-**'
pull_request
:
types
:
[
opened
,
synchronize
,
reopened
,
ready_for_review
]
workflow_run
:
workflows
:
[
External Trigger Filter
]
types
:
[
completed
]
concurrency
:
group
:
${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
cancel-in-progress
:
true
jobs
:
external-filter
:
if
:
github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
3
steps
:
-
run
:
|
if ${{ github.event.pull_request.head.repo.full_name == github.repository }}; then
echo 'Running E2E tests within the organization.'
elif ${{ github.event.workflow_run.conclusion == 'success' }}; then
echo "Running E2E tests for the external contributor. Thank you!"
fi
files-changed
:
name
:
Check which files changed
needs
:
external-filter
if
:
needs.external-filter.result == 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
3
outputs
:
...
...
@@ -29,6 +46,8 @@ jobs:
filters
:
.github/file-paths.yaml
e2e-matrix-builder
:
needs
:
external-filter
if
:
needs.external-filter.result == 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
5
outputs
:
...
...
@@ -40,9 +59,10 @@ jobs:
uses
:
./.github/actions/build-e2e-matrix
build
:
needs
:
[
files-changed
,
e2e-matrix-builder
]
needs
:
[
files-changed
,
e2e-matrix-builder
,
external-filter
]
if
:
|
!cancelled() &&
needs.external-filter.result == 'success' &&
github.event.pull_request.draft == false &&
needs.e2e-matrix-builder.result == 'success' &&
needs.files-changed.outputs.e2e_all == 'true'
...
...
@@ -72,9 +92,9 @@ jobs:
name
:
metabase-${{ matrix.edition }}-${{ github.event.pull_request.head.sha || github.sha }}-uberjar
e2e-tests
:
needs
:
[
build
,
e2e-matrix-builder
]
needs
:
[
build
,
e2e-matrix-builder
,
external-filter
]
if
:
|
!cancelled() && needs.build.result == 'success'
!cancelled() && needs.build.result == 'success'
&& needs.external-filter.result == 'success'
runs-on
:
${{ matrix.runner }}
timeout-minutes
:
90
name
:
e2e-tests-${{ matrix.name }}-${{ matrix.edition }}
...
...
@@ -182,10 +202,10 @@ jobs:
if-no-files-found
:
ignore
e2e-tests-skipped-stub
:
needs
:
[
e2e-tests
,
e2e-matrix-builder
]
needs
:
[
e2e-tests
,
e2e-matrix-builder
,
external-filter
]
if
:
|
!cancelled() &&
needs.e2e-tests.result == 'skipped'
needs.e2e-tests.result == 'skipped'
&& needs.external-filter.result == 'success'
runs-on
:
${{ matrix.runner }}
timeout-minutes
:
5
name
:
e2e-tests-${{ matrix.name }}-${{ matrix.edition }}
...
...
@@ -199,9 +219,9 @@ jobs:
visual-regression-tests
:
runs-on
:
ubuntu-22.04
timeout-minutes
:
60
needs
:
[
build
]
needs
:
[
build
,
external-filter
]
if
:
|
!cancelled() && needs.build.result == 'success'
!cancelled() && needs.build.result == 'success'
&& needs.external-filter.result == 'success'
name
:
percy-visual-regression-tests
steps
:
-
uses
:
actions/checkout@v3
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment