Skip to content

Commit 860a725

Browse files
Update google-cloudrun-docker.yml
1 parent ed196a8 commit 860a725

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/google-cloudrun-docker.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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
@@ -60,6 +62,6 @@ jobs:
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: .

0 commit comments

Comments
 (0)