File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Deploy Angular Blog to Cloud Run
33on :
44 push :
55 branches :
6- - main # or any other branch you use for production
6+ - main
77
88jobs :
99 test :
@@ -24,12 +24,11 @@ jobs:
2424 - name : Run unit tests with headless Chrome
2525 run : npm run test -- --browsers=ChromeHeadless --watch=false --no-progress
2626 continue-on-error : false
27- # The workflow will fail if tests throw an error or fail
2827
2928 deploy :
3029 name : Build and Deploy
3130 runs-on : ubuntu-latest
32- needs : test # This makes deploy job dependent on the test job
31+ needs : test
3332
3433 steps :
3534 - name : Checkout code
6261 - name : Deploy to Cloud Run using Buildpacks
6362 uses : google-github-actions/deploy-cloudrun@v2
6463 with :
65- service : angular-blog # your Cloud Run service name
66- region : europe-central2 # match to your region
64+ service : angular-blog
65+ region : europe-central2
6766 source : .
You can’t perform that action at this time.
0 commit comments