Skip to content

Commit

Permalink
ci: check:scatch job should always be manual, and fixed syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
CMCDragonkai committed Sep 26, 2022
1 parent d00dd15 commit de75773
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,15 @@ stages:

check:scratch:
stage: check
needs: [ ]
needs: []
script:
nix-shell --arg ci true --run $'
npm test -- --ci tests/scratch.test.ts;
'
- >
nix-shell --arg ci true --run $'
npm test -- --ci tests/scratch.test.ts;
'
allow_failure: true
rules:
# Runs on feature and staging commits and ignores version commits
- if: $CI_COMMIT_BRANCH =~ /^(?:feature.*|staging)$/ && $CI_COMMIT_TITLE !~ /^[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
# Runs on tag pipeline where the tag is a prerelease or release version
- if: $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
# Manually run on commits other than master and ignore version commits
- if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != 'master' && $CI_COMMIT_TITLE !~ /^[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
when: manual
- when: manual

check:lint:
stage: check
Expand Down

0 comments on commit de75773

Please sign in to comment.