From bd2286cf09eb8ac3a012988e628dc9da474b36bd Mon Sep 17 00:00:00 2001 From: lucasferreiralimax Date: Sat, 25 May 2024 23:12:53 -0300 Subject: [PATCH] test(unit): adjustment test unit in ci/cd with --legacy-peer-deps --- .github/workflows/firebase-hosting-merge.yml | 2 +- .github/workflows/firebase-hosting-pull-request.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index 20d64f4..e72fd0a 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -15,7 +15,7 @@ jobs: - name: Test unit component run: npm ci --legacy-peer-deps && npm run test:unit - name: Test unit docs - run: cd docs && npm ci && npm run test:unit + run: cd docs && npm ci --legacy-peer-deps && npm run test:unit - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: '${{ secrets.GITHUB_TOKEN }}' diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index d9696ea..11a665d 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -9,11 +9,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: cd docs && npm ci --legacy-peer-deps && npm run build + - run: cd docs && npm ci --legacy-peer-deps && npm run build - name: Test unit component run: npm ci --legacy-peer-deps && npm run test:unit - name: Test unit docs - run: cd docs && npm ci && npm run test:unit + run: cd docs && npm ci --legacy-peer-deps && npm run test:unit - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: '${{ secrets.GITHUB_TOKEN }}'