We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08a04d5 commit db9a43bCopy full SHA for db9a43b
.github/workflows/test.yml
@@ -42,10 +42,10 @@ jobs:
42
run: yarn build
43
- name: Run test suite
44
run: |
45
- if [ "${{ github.event_name }}" == "pull_request" ]; then
46
- npx nx affected --target=test --parallel=4 --ci --coverage --runInBand
+ if [ "${{ github.ref_name }}" == "main" ]; then
+ npx nx run-many --target=test --all --parallel=4 --ci --coverage --runInBand --skip-nx-cache
47
else
48
- npx nx run-many --target=test --all --parallel=4 --ci --coverage --runInBand
+ npx nx affected --target=test --parallel=4 --ci --coverage --runInBand
49
fi
50
- name: Upload test results
51
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
0 commit comments