This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -39,16 +39,21 @@ jobs:
39
39
id : cpu-cores
40
40
uses : SimenB/github-actions-cpu-cores@v1
41
41
42
- - name : Run tests with coverage and metrics
42
+ - name : Load metrics reporter
43
+ id : metrics
43
44
if : github.ref == 'refs/heads/develop'
44
- run : " yarn coverage --ci --reporters github-actions '--reporters=<rootDir>/test/slowReporter.js' --max-workers ${{ steps.cpu-cores.outputs.count }}"
45
+ run : |
46
+ echo "extra-reporter='--reporters=<rootDir>/test/slowReporter.js'" >> $GITHUB_OUTPUT
45
47
46
- - name : Run tests with coverage
47
- if : github.ref != 'refs/heads/develop'
48
- run : " yarn coverage --ci --reporters github-actions --max-workers ${{ steps.cpu-cores.outputs.count }}"
48
+ - name : Run tests
49
+ run : |
50
+ yarn ${{ inputs.disable_coverage != 'true' && 'coverage' || 'test' }} \
51
+ --ci \
52
+ --reporters github-actions ${{ steps.metrics.outputs.extra-reporter }} \
53
+ --max-workers ${{ steps.cpu-cores.outputs.count }}
49
54
50
55
- name : Upload Artifact
51
- if : inputs.matrix-js-sdk-sha == ' '
56
+ if : inputs.disable_coverage != 'true '
52
57
uses : actions/upload-artifact@v3
53
58
with :
54
59
name : coverage
You can’t perform that action at this time.
0 commit comments