diff --git a/.github/workflows/github-pages-deploy.yml b/.github/workflows/github-pages-deploy.yml index 580bf1e..ef1f53c 100644 --- a/.github/workflows/github-pages-deploy.yml +++ b/.github/workflows/github-pages-deploy.yml @@ -25,9 +25,15 @@ jobs: env: ENVIRONMENT: '${{ secrets.ENVIRONMENT }}' - - name: Install and build + - name: Install Dependencies + run: npm install + + - name: Run Tests + run: npm run test + + - name: Build App working-directory: ./ - run: npm install && npm run build:pro && cp dist/personal-web/browser/index.html dist/personal-web/browser/404.html + run: npm run build:pro && cp dist/personal-web/browser/index.html dist/personal-web/browser/404.html - name: Deploy uses: JamesIves/github-pages-deploy-action@4.1.1 diff --git a/package.json b/package.json index 26e256d..a4436fa 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "build:dev": "ng build --configuration dev", "build:pro": "ng build --configuration pro", "watch": "ng build --watch --configuration dev", - "test": "ng test", + "test": "ng test --watch=false --browsers=ChromeHeadless", + "test:watch": "ng test", "lint": "eslint .", "prepare": "husky install", "dev:ssr": "ng run personal-web:serve-ssr --port 4201",