Skip to content

Commit

Permalink
Merge branch 'jul/set-npm-cache' into 'master'
Browse files Browse the repository at this point in the history
Use npm cache folder on runners

See merge request TankerHQ/sdk-js!1000
  • Loading branch information
JMounier committed Dec 12, 2023
2 parents 9ca713f + 0a405e5 commit 4858829
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
include:
- project: TankerHQ/gitlab-ci-files
file: /common.yml
ref: 2021-12-16-236
ref: 2023-08-25-271
- project: TankerHQ/gitlab-ci-files
file: /cache.yml
ref: 2023-12-12-275

variables:
GIT_DEPTH: 1
Expand All @@ -18,11 +21,14 @@ default:
- poetry -V
- node -v
- npm --version
- npm config list -l | grep cache
- poetry install --sync
- poetry run python --version

check/lint:
stage: check
extends:
- .npm-cache
rules:
- !reference [.rules/mr/auto, rules]
- !reference [.rules/web/auto, rules]
Expand All @@ -38,6 +44,8 @@ check/lint:

check/linux/chrome:
stage: check
extends:
- .npm-cache
rules:
- !reference [.rules/mr/auto, rules]
- !reference [.rules/web/auto, rules]
Expand All @@ -48,6 +56,8 @@ check/linux/chrome:

.check/linux/node-base:
stage: check
extends:
- .npm-cache
script:
- /usr/local/nvm/nvm-exec poetry run python run-ci.py check --runner node
- mv coverage/lcov-report lcov-report
Expand Down Expand Up @@ -116,6 +126,7 @@ check/windows/edge:

check/linux/nightly:
extends:
- .npm-cache
- .rules/nightly
stage: check
script:
Expand Down Expand Up @@ -144,8 +155,7 @@ check/bridge-dotenv:
before_script:
- poetry install --sync
script:
- poetry run python run-ci.py write-bridge-dotenv --downstream benchmarks
--downstream compatibility-tests
- poetry run python run-ci.py write-bridge-dotenv --downstream benchmarks --downstream compatibility-tests
rules: # Other jobs cannot "needs" this once if the rules don't match
- !reference [.rules/mr/auto, rules]
- !reference [.rules/web/auto, rules]
Expand Down Expand Up @@ -232,6 +242,8 @@ bridge/compat:

check/e2e:
stage: check
extends:
- .npm-cache
rules:
- !reference [.rules/mr/manual, rules]
- !reference [.rules/nightly, rules]
Expand All @@ -242,6 +254,7 @@ check/e2e:

audit:
extends:
- .npm-cache
- .rules/nightly
stage: check
script:
Expand All @@ -266,6 +279,7 @@ test/deployed:
needs:
- deploy
extends:
- .npm-cache
- .rules/deploy/js
script:
- poetry run python run-ci.py test-deploy --version "${SDK_JS_RELEASE_VERSION}"
Expand Down

0 comments on commit 4858829

Please sign in to comment.