Skip to content

Commit

Permalink
ci: syntax fixes for gitlab-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
emmacasolin committed Jun 7, 2022
1 parent 223158b commit 03ef425
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,29 +94,24 @@ check:test-generate:

check:test:
stage: check
needs: [
needs:
- check:test-generate
]
script:
- >
nix-shell --run '
npm run build --verbose;
npm test -- --ci --coverage;
'
artifacts:
when: always
reports:
junit:
- ./tmp/junit/junit.xml
coverage_report:
coverage_format: cobertura
path: ./tmp/coverage/cobertura-coverage.xml
coverage: '/All files[^|]*\|[^|]*\s+([\d\.]+)/'
inherit:
variables: false
trigger:
include:
- artifact: tmp/test-pipelines.yml
job: test-generate
job: check:test-generate
strategy: depend
# artifacts:
# when: always
# reports:
# junit:
# - ./tmp/junit/junit.xml
# coverage_report:
# coverage_format: cobertura
# path: ./tmp/coverage/cobertura-coverage.xml
# coverage: '/All files[^|]*\|[^|]*\s+([\d\.]+)/'
rules:
# Runs on staging commits and ignores version commits
- if: $CI_COMMIT_BRANCH =~ /^feature.*$/ && $CI_COMMIT_TITLE !~ /^[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
Expand Down

0 comments on commit 03ef425

Please sign in to comment.