Merge branch 'ci-interruptable' into 'develop'

GitLab CI: let jobs auto-cancel when a new commit is pushed to the same branch

See merge request soapbox-pub/soapbox!2009
environments/review-develop-3zknud/deployments/1768
Alex Gleason 2022-12-17 02:19:35 +00:00
commit 636abf6400
1 zmienionych plików z 11 dodań i 1 usunięć

Wyświetl plik

@ -33,6 +33,7 @@ danger:
- export CI_MERGE_REQUEST_IID=${CI_OPEN_MERGE_REQUESTS#*!}
- npx danger ci
allow_failure: true
interruptible: true
lint-js:
stage: test
@ -45,6 +46,7 @@ lint-js:
- "**/*.tsx"
- ".eslintignore"
- ".eslintrc.js"
interruptible: true
lint-sass:
stage: test
@ -54,6 +56,7 @@ lint-sass:
- "**/*.scss"
- "**/*.css"
- ".stylelintrc.json"
interruptible: true
jest:
stage: test
@ -76,6 +79,7 @@ jest:
coverage_report:
coverage_format: cobertura
path: .coverage/cobertura-coverage.xml
interruptible: true
nginx-test:
stage: test
@ -85,6 +89,7 @@ nginx-test:
only:
changes:
- "installation/mastodon.conf"
interruptible: true
build-production:
stage: test
@ -94,6 +99,7 @@ build-production:
artifacts:
paths:
- static
interruptible: true
docs-deploy:
stage: deploy
@ -107,6 +113,7 @@ docs-deploy:
- develop
changes:
- "docs/**/*"
interruptible: true
# Supposed to fail when translations are outdated, instead always passes
#
@ -127,6 +134,7 @@ review:
script:
- npx -y surge static $CI_COMMIT_REF_SLUG.git.soapbox.pub
allow_failure: true
interruptible: true
pages:
stage: deploy
@ -142,6 +150,7 @@ pages:
only:
refs:
- develop
interruptible: true
docker:
stage: deploy
@ -157,4 +166,5 @@ docker:
- docker push $CI_REGISTRY_IMAGE
only:
refs:
- develop
- develop
interruptible: true