File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -1885,8 +1885,9 @@ steps:
18851885 repo :
18861886 - grafana/grafana
18871887- commands :
1888- - apk add --update bash grep
1889- - ./scripts/ci-frontend-metrics.sh | ./bin/build publish-metrics $$GRAFANA_MISC_STATS_API_KEY
1888+ - apk add --update bash grep git
1889+ - ./scripts/ci-frontend-metrics.sh ./grafana/public/build | ./bin/build publish-metrics
1890+ $$GRAFANA_MISC_STATS_API_KEY
18901891 depends_on :
18911892 - test-a11y-frontend
18921893 environment :
@@ -4188,6 +4189,6 @@ kind: secret
41884189name : gcr_credentials
41894190---
41904191kind : signature
4191- hmac : a7e975025e17a664e3cdb5042d624c05c0f92b2e2f433db2c66bc7ebe2a2eca7
4192+ hmac : dd510a5bc713ecde460082403f309b93dcdcb823368e642bac07861eddbf051e
41924193
41934194...
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -e
33
4+ BUILD_FOLDER=$1
5+ if [ -z " $BUILD_FOLDER " ]; then
6+ BUILD_FOLDER=" ./public/build"
7+ fi
8+
49ERROR_COUNT=" 0"
510ACCESSIBILITY_ERRORS=" $( grep -oP ' \"errors\":(\d+),' pa11y-ci-results.json | grep -oP ' \d+' ) "
611DIRECTIVES=" $( grep -r -o directive public/app/ | wc -l) "
@@ -10,7 +15,7 @@ CLASSNAME_PROP="$(grep -r -o -E --include="*.ts*" "\.*.className=\W.*\W.*" publi
1015EMOTION_IMPORTS=" $( grep -r -o -E --include=" *.ts*" --exclude=" *.test*" " \{.*css.*\} from '@emotion/css'" public/app | wc -l) "
1116TS_FILES=" $( find public/app -type f -name " *.ts*" -not -name " *.test*" | wc -l) "
1217
13- TOTAL_BUNDLE=" $( du -sk ./public/build | cut -f1) "
18+ TOTAL_BUNDLE=" $( du -sk $BUILD_FOLDER | cut -f1) "
1419OUTDATED_DEPENDENCIES=" $( yarn outdated --all | grep -oP ' [[:digit:]]+ *(?= dependencies are out of date)' ) "
1520# # Disabled due to yarn PnP update breaking npm audit
1621# VULNERABILITY_AUDIT="$(yarn npm audit --all --recursive --json)"
Original file line number Diff line number Diff line change @@ -633,8 +633,8 @@ def frontend_metrics_step(trigger = None):
633633 },
634634 "failure" : "ignore" ,
635635 "commands" : [
636- "apk add --update bash grep" ,
637- "./scripts/ci-frontend-metrics.sh | ./bin/build publish-metrics $$GRAFANA_MISC_STATS_API_KEY" ,
636+ "apk add --update bash grep git " ,
637+ "./scripts/ci-frontend-metrics.sh ./grafana/public/build | ./bin/build publish-metrics $$GRAFANA_MISC_STATS_API_KEY" ,
638638 ],
639639 }
640640 if trigger :
You can’t perform that action at this time.
0 commit comments