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
bdc1e665
Unverified
Commit
bdc1e665
authored
2 years ago
by
Ariya Hidayat
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[E2E] Experiment running `downloads` test group as PR check (#21492)
parent
06d3244f
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
+125
-0
125 additions, 0 deletions
.github/workflows/e2e-tests.yml
with
125 additions
and
0 deletions
.github/workflows/e2e-tests.yml
0 → 100644
+
125
−
0
View file @
bdc1e665
name
:
E2E Tests for PR
on
:
pull_request
:
types
:
[
opened
,
synchronize
,
reopened
,
ready_for_review
]
paths-ignore
:
-
"
docs/**"
-
"
**.md"
-
"
.circleci/**"
jobs
:
build
:
if
:
github.event.pull_request.draft ==
false
runs-on
:
buildjet-2vcpu-ubuntu-2004
timeout-minutes
:
25
strategy
:
matrix
:
edition
:
[
oss
,
ee
]
env
:
MB_EDITION
:
${{ matrix.edition }}
INTERACTIVE
:
false
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Prepare front-end environment
uses
:
./.github/actions/prepare-frontend
-
name
:
Prepare back-end environment
uses
:
./.github/actions/prepare-backend
-
run
:
./bin/build version
-
run
:
./bin/build translations
-
run
:
./bin/build frontend
-
run
:
./bin/build licenses
-
run
:
./bin/build drivers
-
run
:
./bin/build uberjar
-
name
:
Prepare uberjar artifact
uses
:
./.github/actions/prepare-uberjar-artifact
e2e-tests
:
runs-on
:
buildjet-4vcpu-ubuntu-2004
timeout-minutes
:
30
needs
:
build
name
:
e2e-tests-${{ matrix.folder }}-${{ matrix.edition }}
env
:
MB_EDITION
:
${{ matrix.edition }}
DISPLAY
:
"
"
QA_DB_ENABLED
:
true
ENTERPRISE_TOKEN
:
${{ secrets.ENTERPRISE_TOKEN }}
MB_SNOWPLOW_AVAILABLE
:
true
MB_SNOWPLOW_URL
:
"
http://localhost:9090"
# Snowplow micro
strategy
:
fail-fast
:
false
matrix
:
java-version
:
[
11
]
edition
:
[
oss
,
ee
]
folder
:
-
"
downloads"
services
:
maildev
:
image
:
maildev/maildev:1.1.0
ports
:
-
"
80:80"
-
"
25:25"
credentials
:
username
:
${{ secrets.DOCKERHUB_USERNAME }}
password
:
${{ secrets.DOCKERHUB_TOKEN }}
postgres-sample
:
image
:
metabase/qa-databases:postgres-sample-12
ports
:
-
"
5432:5432"
credentials
:
username
:
${{ secrets.DOCKERHUB_USERNAME }}
password
:
${{ secrets.DOCKERHUB_TOKEN }}
mongo-sample
:
image
:
metabase/qa-databases:mongo-sample-4.0
ports
:
-
27017:27017
credentials
:
username
:
${{ secrets.DOCKERHUB_USERNAME }}
password
:
${{ secrets.DOCKERHUB_TOKEN }}
mysql-sample
:
image
:
metabase/qa-databases:mysql-sample-8
ports
:
-
3306:3306
credentials
:
username
:
${{ secrets.DOCKERHUB_USERNAME }}
password
:
${{ secrets.DOCKERHUB_TOKEN }}
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Prepare front-end environment
uses
:
./.github/actions/prepare-frontend
-
name
:
Prepare JDK ${{ matrix.java-version }}
uses
:
actions/setup-java@v3
with
:
java-version
:
${{ matrix.java-version }}
distribution
:
'
temurin'
-
name
:
Prepare cypress environment
uses
:
./.github/actions/prepare-cypress
-
name
:
Run Snowplow micro
uses
:
./.github/actions/run-snowplow-micro
-
uses
:
actions/download-artifact@v2
name
:
Retrieve uberjar artifact for ${{ matrix.edition }}
with
:
name
:
metabase-${{ matrix.edition }}-uberjar
-
name
:
Get the version info
run
:
|
jar xf target/uberjar/metabase.jar version.properties
mv version.properties resources/
-
name
:
Run Cypress tests on ${{ matrix.folder }}
run
:
yarn run test-cypress-no-build --folder ${{ matrix.folder }}
env
:
TERM
:
xterm
-
name
:
Upload Cypress recording upon failure
uses
:
actions/upload-artifact@v2
if
:
failure()
with
:
name
:
cypress-recording-${{ matrix.folder }}-${{ matrix.edition }}
path
:
|
./cypress
./logs/test.log
if-no-files-found
:
ignore
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