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
a474417c
Unverified
Commit
a474417c
authored
1 year ago
by
Ariya Hidayat
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
CI pre-release: Add sanity check (#31202)
parent
7d7325c6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/pre-release.yml
+61
-1
61 additions, 1 deletion
.github/workflows/pre-release.yml
with
61 additions
and
1 deletion
.github/workflows/pre-release.yml
+
61
−
1
View file @
a474417c
...
...
@@ -155,9 +155,69 @@ jobs:
-
name
:
Wait for Metabase to start
run
:
while ! curl -s 'http://localhost:3000/api/health' | grep '{"status":"ok"}'; do sleep 1; done
containerize
:
run-sanity-check
:
runs-on
:
ubuntu-22.04
timeout-minutes
:
15
needs
:
check-uberjar-health
strategy
:
matrix
:
edition
:
[
oss
,
ee
]
env
:
MB_EDITION
:
${{ matrix.edition }}
DISPLAY
:
"
"
MB_PREMIUM_EMBEDDING_TOKEN
:
${{ secrets.ENTERPRISE_TOKEN }}
MB_SNOWPLOW_AVAILABLE
:
true
MB_SNOWPLOW_URL
:
"
http://localhost:9090"
# Snowplow micro
services
:
maildev
:
image
:
maildev/maildev:2.0.5
ports
:
-
"
1080:1080"
-
"
1025:1025"
credentials
:
username
:
${{ secrets.DOCKERHUB_USERNAME }}
password
:
${{ secrets.DOCKERHUB_TOKEN }}
steps
:
-
name
:
Check out the code
uses
:
actions/checkout@v3
with
:
ref
:
${{ github.event.inputs.commit }}
-
name
:
Prepare front-end environment
uses
:
./.github/actions/prepare-frontend
-
name
:
Prepare JDK
11
uses
:
actions/setup-java@v3
with
:
java-version
:
11
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@v3
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 a few important Cypress tests as sanity check
run
:
yarn test-cypress-run --folder onboarding
env
:
TERM
:
xterm
-
name
:
Upload Cypress Artifacts upon failure
uses
:
actions/upload-artifact@v3
if
:
failure()
with
:
name
:
cypress-failed-tests-recording
path
:
|
./cypress
./logs/test.log
if-no-files-found
:
ignore
containerize
:
runs-on
:
ubuntu-22.04
needs
:
run-sanity-check
timeout-minutes
:
15
strategy
:
matrix
:
...
...
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