- add
TEST_COVERAGE_USERNAME,TEST_COVERAGE_PASSWORD,TEST_COVERAGE_URLto environment variables (BB / local) - make sure to use this syntax -> VARIABLE=VALUE <- (not VARIABLE='VALUE')
- CAUTION:
exportmay print environment variables to terminal on some systems - invoke as
export $(cat .env | xargs) && npx GoodRequest/test-coverage-push-script - exporting output from .env / xargs makes environment variables accessible to this script
- step:
name: Test code
script:
- npm run db:init:test
- npm run test:coverage
- npx GoodRequest/test-coverage-push-script
services:
- mssql