Skip to content

Commit

Permalink
build: Add watch flag for unit tests step in CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Wiraszka committed Jul 1, 2024
1 parent e35d47c commit e2b7d2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: pnpm run build

- name: Run unit tests
run: pnpm run test:ci
run: pnpm run test:headless

Update-S3-Bucket:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: pnpm run build

- name: Run unit tests
run: pnpm run test:ci
run: pnpm run test:headless

Update-S3-Bucket:
needs: [Test]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"build:stats": "ng build --stats-json && webpack-bundle-analyzer dist/stats.json",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"test:ci": "ng test --browsers=ChromeHeadless"
"test:headless": "ng test --browsers=ChromeHeadless --watch=false"
},
"dependencies": {
"@angular/animations": "^18.0.4",
Expand Down

0 comments on commit e2b7d2b

Please sign in to comment.