mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 01:16:23 +00:00
ci: stages
This commit is contained in:
parent
3837c92030
commit
6a91a4179c
1 changed files with 5 additions and 5 deletions
|
@ -21,19 +21,19 @@ assets:
|
||||||
- "git add public && git commit -m \"ci: assets [skip ci]\""
|
- "git add public && git commit -m \"ci: assets [skip ci]\""
|
||||||
- "git push -o ci.skip"
|
- "git push -o ci.skip"
|
||||||
gem-audit:
|
gem-audit:
|
||||||
stage: "audit"
|
stage: "test"
|
||||||
before_script:
|
before_script:
|
||||||
- "apk add go-task"
|
- "apk add go-task"
|
||||||
- "gem install bundler-audit"
|
- "gem install bundler-audit"
|
||||||
script:
|
script:
|
||||||
- "go-task gem-audit"
|
- "go-task gem-audit"
|
||||||
node-audit:
|
node-audit:
|
||||||
stage: "audit"
|
stage: "test"
|
||||||
script:
|
script:
|
||||||
- "apk add go-task"
|
- "apk add go-task"
|
||||||
- "go-task node-audit"
|
- "go-task node-audit"
|
||||||
brakeman:
|
brakeman:
|
||||||
stage: "lint"
|
stage: "test"
|
||||||
rules:
|
rules:
|
||||||
- if: "$CI_PIPELINE_SOURCE == \"merge_request_event\""
|
- if: "$CI_PIPELINE_SOURCE == \"merge_request_event\""
|
||||||
before_script:
|
before_script:
|
||||||
|
@ -41,7 +41,7 @@ brakeman:
|
||||||
script:
|
script:
|
||||||
- "go-task bundle -- exec brakeman"
|
- "go-task bundle -- exec brakeman"
|
||||||
rubocop:
|
rubocop:
|
||||||
stage: "lint"
|
stage: "test"
|
||||||
rules:
|
rules:
|
||||||
- if: "$CI_PIPELINE_SOURCE == \"merge_request_event\""
|
- if: "$CI_PIPELINE_SOURCE == \"merge_request_event\""
|
||||||
before_script:
|
before_script:
|
||||||
|
@ -49,7 +49,7 @@ rubocop:
|
||||||
script:
|
script:
|
||||||
- "./bin/modified_files | grep .rb | xargs go-task bundle -- exec rubocop"
|
- "./bin/modified_files | grep .rb | xargs go-task bundle -- exec rubocop"
|
||||||
haml:
|
haml:
|
||||||
stage: "lint"
|
stage: "test"
|
||||||
rules:
|
rules:
|
||||||
- if: "$CI_PIPELINE_SOURCE == \"merge_request_event\""
|
- if: "$CI_PIPELINE_SOURCE == \"merge_request_event\""
|
||||||
before_script:
|
before_script:
|
||||||
|
|
Loading…
Reference in a new issue