File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,15 @@ jobs:
2121 - name : Install dependencies
2222 run : npm ci
2323
24- - name : Run unit tests
25- run : npm test
24+ - name : Run unit tests with headless Chrome
25+ run : npm run test -- --browsers=ChromeHeadless --watch=false --no-progress
26+ continue-on-error : false
27+ # The workflow will fail if tests throw an error or fail
2628
2729 deploy :
2830 name : Build and Deploy
2931 runs-on : ubuntu-latest
30- needs : test
32+ needs : test # This makes deploy job dependent on the test job
3133
3234 steps :
3335 - name : Checkout code
6062 - name : Deploy to Cloud Run using Buildpacks
6163 uses : google-github-actions/deploy-cloudrun@v2
6264 with :
63- service : angular-blog
64- region : europe-central2
65+ service : angular-blog # your Cloud Run service name
66+ region : europe-central2 # match to your region
6567 source : .
You can’t perform that action at this time.
0 commit comments