mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
hashcheck audit job for zapier
This commit is contained in:
parent
10bbb7dd69
commit
3ad2a75039
@ -1,19 +1,35 @@
|
||||
##ZAPIER
|
||||
audit_zapier:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd zapier
|
||||
- npm ci
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
except:
|
||||
refs:
|
||||
- hotfix-master
|
||||
- hotfix-release
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- |
|
||||
if [[ $CI_COMMIT_BRANCH != "master" ]] && [[ $CI_COMMIT_BRANCH != "release" ]]
|
||||
then
|
||||
chmod +x ./ci/scripts/checkhash.sh
|
||||
export zapier_exist=`./ci/scripts/checkhash.sh audit_zapier zapier`
|
||||
if [[ $zapier_exist == *"true"* ]]
|
||||
then
|
||||
exit ${CI_JOB_SKIP_EXIT_CODE:-0}
|
||||
fi
|
||||
fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd zapier
|
||||
- npm ci
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
- |
|
||||
if [[ $CI_COMMIT_BRANCH != "master" ]] && [[ $CI_COMMIT_BRANCH != "release" ]]
|
||||
then
|
||||
chmod +x ./ci/scripts/storehash.sh
|
||||
./ci/scripts/storehash.sh audit_zapier zapier
|
||||
fi
|
||||
except:
|
||||
refs:
|
||||
- hotfix-master
|
||||
- hotfix-release
|
||||
|
Loading…
Reference in New Issue
Block a user