mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 02:10:45 -06:00
b6f73e35a5
* circle-test-frontend.sh: Typecheck TypeScript * Chore: fixes type errors Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
22 lines
506 B
Bash
Executable File
22 lines
506 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# shellcheck source=./scripts/helpers/exit-if-fail.sh
|
|
source "$(dirname "$0")/helpers/exit-if-fail.sh"
|
|
|
|
start=$(date +%s)
|
|
|
|
exit_if_fail yarn run prettier:check
|
|
exit_if_fail yarn run packages:typecheck
|
|
exit_if_fail yarn run typecheck
|
|
exit_if_fail yarn run test
|
|
|
|
end=$(date +%s)
|
|
seconds=$((end - start))
|
|
|
|
exit_if_fail ./scripts/ci-frontend-metrics.sh
|
|
|
|
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
|
exit_if_fail ./scripts/ci-metrics-publisher.sh grafana.ci-performance.frontend-tests=$seconds
|
|
fi
|
|
|