Skip to content
Snippets Groups Projects
Unverified Commit 278b6c5a authored by Yassine Doghri's avatar Yassine Doghri
Browse files

ci: add cache key for getting cached folders into jobs

parent 0caa755d
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,8 @@ dependencies: ...@@ -22,6 +22,8 @@ dependencies:
lint-commit-msg: lint-commit-msg:
stage: quality stage: quality
cache:
key: ${CI_COMMIT_REF_SLUG}
script: script:
- chmod +x ./scripts/lint-commit.sh - chmod +x ./scripts/lint-commit.sh
# lint commit message # lint commit message
...@@ -29,6 +31,8 @@ lint-commit-msg: ...@@ -29,6 +31,8 @@ lint-commit-msg:
lint-php: lint-php:
stage: quality stage: quality
cache:
key: ${CI_COMMIT_REF_SLUG}
script: script:
# check php code style # check php code style
- vendor/bin/ecs check --ansi - vendor/bin/ecs check --ansi
...@@ -39,6 +43,8 @@ lint-php: ...@@ -39,6 +43,8 @@ lint-php:
lint-js: lint-js:
stage: quality stage: quality
cache:
key: ${CI_COMMIT_REF_SLUG}
script: script:
- npm run prettier - npm run prettier
- npm run typecheck - npm run typecheck
...@@ -47,6 +53,8 @@ lint-js: ...@@ -47,6 +53,8 @@ lint-js:
tests: tests:
stage: quality stage: quality
cache:
key: ${CI_COMMIT_REF_SLUG}
script: script:
# run phpunit without code coverage # run phpunit without code coverage
# TODO: add code coverage # TODO: add code coverage
...@@ -54,6 +62,8 @@ tests: ...@@ -54,6 +62,8 @@ tests:
bundle: bundle:
stage: bundle stage: bundle
cache:
key: ${CI_COMMIT_REF_SLUG}
script: script:
# make scripts/bundle.sh executable # make scripts/bundle.sh executable
- chmod +x ./scripts/bundle-prepare.sh - chmod +x ./scripts/bundle-prepare.sh
...@@ -73,6 +83,8 @@ bundle: ...@@ -73,6 +83,8 @@ bundle:
release: release:
stage: release stage: release
cache:
key: ${CI_COMMIT_REF_SLUG}
script: script:
# make release scripts executable # make release scripts executable
- chmod +x ./scripts/bundle-prepare.sh - chmod +x ./scripts/bundle-prepare.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment