ci(docs-infra): run tests against local Angular packages too (#26202)
PR Close #26202
This commit is contained in:

committed by
Jason Aden

parent
10e414f617
commit
1b1c8ee545
30
scripts/ci/test-aio-local.sh
Executable file
30
scripts/ci/test-aio-local.sh
Executable file
@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -u -e -o pipefail
|
||||
|
||||
# Setup environment
|
||||
readonly thisDir=$(cd $(dirname $0); pwd)
|
||||
source ${thisDir}/_travis-fold.sh
|
||||
|
||||
|
||||
# run in subshell to avoid polluting cwd
|
||||
(
|
||||
cd ${PROJECT_ROOT}/aio
|
||||
|
||||
|
||||
# Run PWA-score tests
|
||||
# (Run before unit and e2e tests, which destroy the `dist/` directory.)
|
||||
travisFoldStart "test.aio.pwaScore"
|
||||
yarn test-pwa-score-localhost $AIO_MIN_PWA_SCORE
|
||||
travisFoldEnd "test.aio.pwaScore"
|
||||
|
||||
# Run unit tests
|
||||
travisFoldStart "test.aio.unit"
|
||||
yarn test --watch=false
|
||||
travisFoldEnd "test.aio.unit"
|
||||
|
||||
# Run e2e tests
|
||||
travisFoldStart "test.aio.e2e"
|
||||
yarn e2e
|
||||
travisFoldEnd "test.aio.e2e"
|
||||
)
|
Reference in New Issue
Block a user