Skip to content

Commit

Permalink
ci(GitHubActions): run tests step to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
juamber-rgs committed Jan 30, 2024
1 parent 600381e commit 284fcbd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/github-pages-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 284fcbd

Please sign in to comment.