Skip to content

Commit

Permalink
chore: run **all** tests on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
clementguillot committed Oct 22, 2024
1 parent fc4a1b7 commit 2884f87
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,18 @@ jobs:
- name: Setup build tools
uses: ./.github/actions/setup-tools

- name: Run Test for affected projects
- name: Run Test for affected projects (PR)
if: github.ref != 'refs/heads/main'
run: pnpm exec nx affected -t test
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

- name: Run Test for all projects (main)
if: github.ref == 'refs/heads/main'
run: pnpm exec nx run-many --target=test --all
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@383f7e52eae3ab0510c3cb0e7d9d150bbaeab838 # v3.1.0
env:
Expand Down

0 comments on commit 2884f87

Please sign in to comment.