5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-18 14:12:20 +00:00

ci: stages

This commit is contained in:
f 2024-01-08 17:59:27 -03:00
parent 3837c92030
commit 6a91a4179c
No known key found for this signature in database

View file

@ -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: