mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 07:42:10 +00:00
27 lines
939 B
YAML
27 lines
939 B
YAML
##ADMINDASHBOARD
|
|
audit_AdminDashboard:
|
|
stage: BuildAndTest
|
|
allow_failure: true
|
|
script:
|
|
- chmod +x ./ci/scripts/checkhash.sh
|
|
- export next_stage=`./ci/scripts/checkhash.sh audit_AdminDashboard AdminDashboard`
|
|
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; 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_15.x | sudo -E bash -
|
|
- sudo apt-get install -y nodejs
|
|
- cd AdminDashboard
|
|
- npm install
|
|
- npm run audit
|
|
- npm run dep-check
|
|
- cd ..
|
|
- chmod +x ./ci/scripts/storehash.sh
|
|
- ./ci/scripts/storehash.sh audit_AdminDashboard AdminDashboard
|
|
- chmod +x ./ci/scripts/cleanup.sh
|
|
- ./ci/scripts/cleanup.sh
|
|
only:
|
|
refs:
|
|
- master
|
|
- release
|