Skip to content

Commit 97c72f5

Browse files
adjustment test unit in CI/CD
1 parent f194de5 commit 97c72f5

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/firebase-hosting-merge.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414
- run: cd docs && npm ci && npm run build
15-
- name: Test unit
16-
run: npm run test:unit
15+
- name: Test unit component
16+
run: npm ci && npm run test:unit
17+
- name: Test unit docs
18+
run: cd docs npm ci && npm run test:unit
1719
- uses: FirebaseExtended/action-hosting-deploy@v0
1820
with:
1921
repoToken: '${{ secrets.GITHUB_TOKEN }}'

.github/workflows/firebase-hosting-pull-request.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212
- run: cd docs && npm ci && npm run build
13-
- name: Test unit
14-
run: npm run test:unit
13+
- name: Test unit component
14+
run: npm ci && npm run test:unit
15+
- name: Test unit docs
16+
run: cd docs npm ci && npm run test:unit
1517
- uses: FirebaseExtended/action-hosting-deploy@v0
1618
with:
1719
repoToken: '${{ secrets.GITHUB_TOKEN }}'

0 commit comments

Comments
 (0)