Skip to content

Commit db9a43b

Browse files
authored
ci: fix Codecov on main (#3255)
* ci: skip nx cache for trunk tests * ci: use more semantically correct conditional logic
1 parent 08a04d5 commit db9a43b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ jobs:
4242
run: yarn build
4343
- name: Run test suite
4444
run: |
45-
if [ "${{ github.event_name }}" == "pull_request" ]; then
46-
npx nx affected --target=test --parallel=4 --ci --coverage --runInBand
45+
if [ "${{ github.ref_name }}" == "main" ]; then
46+
npx nx run-many --target=test --all --parallel=4 --ci --coverage --runInBand --skip-nx-cache
4747
else
48-
npx nx run-many --target=test --all --parallel=4 --ci --coverage --runInBand
48+
npx nx affected --target=test --parallel=4 --ci --coverage --runInBand
4949
fi
5050
- name: Upload test results
5151
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0

0 commit comments

Comments
 (0)