Skip to content

Commit

Permalink
build: Run unit tests headless in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Wiraszka committed Jul 1, 2024
1 parent e732439 commit e35d47c
Show file tree
Hide file tree
Showing 3 changed files with 4 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
run: pnpm run test:ci

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
run: pnpm run test:ci

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

0 comments on commit e35d47c

Please sign in to comment.