From 0e6c3ffb70fead5ebdf301d93ac95206eb95b2a3 Mon Sep 17 00:00:00 2001 From: Ricardo Campos Date: Fri, 20 Sep 2024 10:29:12 -0300 Subject: [PATCH] ci: fix test directory --- .github/workflows/main.yml | 6 +++--- .github/workflows/pr.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a922755..1928c6a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,8 +27,8 @@ jobs: run: cd client && npm run build - name: Lint run: cd client && npm run lint - #- name: Unit tests - # run: npm run test + - name: Unit tests + run: cd client && npm run test:coverage client-sonarcloud: name: Client SonarCloud @@ -48,7 +48,7 @@ jobs: -Dsonar.projectKey=ricardo-campos-org_react-typescript-todolist -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info -Dsonar.sources=src/ - -Dsonar.tests=src/__test__/__ + -Dsonar.tests=src/__test__/ -Dsonar.verbose=true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index aacdfe1..46549b7 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -23,8 +23,8 @@ jobs: run: cd client && npm run build - name: Lint run: cd client && npm run lint - #- name: Unit tests - # run: npm run test + - name: Unit tests + run: cd client && npm run test:coverage client-sonarcloud: name: Client SonarCloud @@ -44,7 +44,7 @@ jobs: -Dsonar.projectKey=ricardo-campos-org_react-typescript-todolist -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info -Dsonar.sources=src/ - -Dsonar.tests=src/__test__/__ + -Dsonar.tests=src/__test__/ -Dsonar.verbose=true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any