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
bb794056
Unverified
Commit
bb794056
authored
7 months ago
by
Uladzimir Havenchyk
Committed by
GitHub
7 months ago
Browse files
Options
Downloads
Patches
Plain Diff
ci: deduplicate e2e-tests clojure cache (#46770)
parent
acf87c0c
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/e2e-tests.yml
+20
-20
20 additions, 20 deletions
.github/workflows/e2e-tests.yml
with
20 additions
and
20 deletions
.github/workflows/e2e-tests.yml
+
20
−
20
View file @
bb794056
...
...
@@ -50,25 +50,25 @@ jobs:
java_version
:
${{ fromJson(steps.dependencies.outputs.result).java_version }}
node_version
:
${{ fromJson(steps.dependencies.outputs.result).node_version }}
steps
:
-
uses
:
actions/checkout@v4
with
:
sparse-checkout
:
release
-
name
:
Prepare build scripts
run
:
cd ${{ github.workspace }}/release && yarn && yarn build
-
name
:
Get build dependencies
uses
:
actions/github-script@v7
id
:
dependencies
with
:
script
:
|
# js
const { getBuildRequirements, getVersionFromReleaseBranch } = require('${{ github.workspace }}/release/dist/index.cjs');
-
uses
:
actions/checkout@v4
with
:
sparse-checkout
:
release
-
name
:
Prepare build scripts
run
:
cd ${{ github.workspace }}/release && yarn && yarn build
-
name
:
Get build dependencies
uses
:
actions/github-script@v7
id
:
dependencies
with
:
script
:
|
# js
const { getBuildRequirements, getVersionFromReleaseBranch } = require('${{ github.workspace }}/release/dist/index.cjs');
const version = getVersionFromReleaseBranch('${{ github.ref }}');
const requirements = getBuildRequirements(version);
const version = getVersionFromReleaseBranch('${{ github.ref }}');
const requirements = getBuildRequirements(version);
return {
java_version: requirements.java,
node_version: requirements.node,
};
return {
java_version: requirements.java,
node_version: requirements.node,
};
build
:
needs
:
[
files-changed
,
e2e-matrix-builder
,
get-build-requirements
]
...
...
@@ -92,12 +92,12 @@ jobs:
-
name
:
Prepare front-end environment
uses
:
./.github/actions/prepare-frontend
with
:
node-version
:
'
${{
needs.get-build-requirements.outputs.node_version
}}
'
node-version
:
"
${{
needs.get-build-requirements.outputs.node_version
}}
"
-
name
:
Prepare back-end environment
uses
:
./.github/actions/prepare-backend
with
:
m2-cache-key
:
e2e-tests
java-version
:
'
${{
needs.get-build-requirements.outputs.java_version
||
11
}}
'
m2-cache-key
:
uberjar
java-version
:
"
${{
needs.get-build-requirements.outputs.java_version
||
11
}}
"
-
name
:
Build uberjar with ./bin/build.sh
run
:
./bin/build.sh
...
...
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