mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +00:00
ci: add cache key for getting cached folders into jobs
This commit is contained in:
parent
0caa755d3e
commit
278b6c5a82
@ -22,6 +22,8 @@ dependencies:
|
||||
|
||||
lint-commit-msg:
|
||||
stage: quality
|
||||
cache:
|
||||
key: ${CI_COMMIT_REF_SLUG}
|
||||
script:
|
||||
- chmod +x ./scripts/lint-commit.sh
|
||||
# lint commit message
|
||||
@ -29,6 +31,8 @@ lint-commit-msg:
|
||||
|
||||
lint-php:
|
||||
stage: quality
|
||||
cache:
|
||||
key: ${CI_COMMIT_REF_SLUG}
|
||||
script:
|
||||
# check php code style
|
||||
- vendor/bin/ecs check --ansi
|
||||
@ -39,6 +43,8 @@ lint-php:
|
||||
|
||||
lint-js:
|
||||
stage: quality
|
||||
cache:
|
||||
key: ${CI_COMMIT_REF_SLUG}
|
||||
script:
|
||||
- npm run prettier
|
||||
- npm run typecheck
|
||||
@ -47,6 +53,8 @@ lint-js:
|
||||
|
||||
tests:
|
||||
stage: quality
|
||||
cache:
|
||||
key: ${CI_COMMIT_REF_SLUG}
|
||||
script:
|
||||
# run phpunit without code coverage
|
||||
# TODO: add code coverage
|
||||
@ -54,6 +62,8 @@ tests:
|
||||
|
||||
bundle:
|
||||
stage: bundle
|
||||
cache:
|
||||
key: ${CI_COMMIT_REF_SLUG}
|
||||
script:
|
||||
# make scripts/bundle.sh executable
|
||||
- chmod +x ./scripts/bundle-prepare.sh
|
||||
@ -73,6 +83,8 @@ bundle:
|
||||
|
||||
release:
|
||||
stage: release
|
||||
cache:
|
||||
key: ${CI_COMMIT_REF_SLUG}
|
||||
script:
|
||||
# make release scripts executable
|
||||
- chmod +x ./scripts/bundle-prepare.sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user