Skip to content

Commit

Permalink
improvement actions and add test units
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasferreiralimax committed Oct 17, 2024
1 parent 9c9fac8 commit b6208b5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
- name: Install dependencies and build
run: npm ci && npm run build
- name: Run unit tests
run: npm run test
- name: Run module tests
run: npm run test:module
- name: Deploy to Firebase Hosting
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_UP_WINDOW_ANGULAR }}
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
- name: Install dependencies and build
run: npm ci && npm run build
- name: Run unit tests
run: npm run test
- name: Run module tests
run: npm run test:module
- name: Deploy to Firebase Hosting
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_UP_WINDOW_ANGULAR }}
Expand Down

0 comments on commit b6208b5

Please sign in to comment.