This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ concurrency:
10
10
jobs :
11
11
sonarqube :
12
12
name : 🩻 SonarQube
13
- if : github.event.workflow_run.event != 'merge_group'
13
+ if : github.event.workflow_run.conclusion == 'success' && github.event.workflow_run. event != 'merge_group'
14
14
uses : matrix-org/matrix-js-sdk/.github/workflows/sonarcloud.yml@develop
15
15
secrets :
16
16
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
17
+ with :
18
+ sharded : true
Original file line number Diff line number Diff line change 30
30
jest :
31
31
name : Jest
32
32
runs-on : ubuntu-latest
33
+ strategy :
34
+ fail-fast : false
35
+ matrix :
36
+ # Run multiple instances in parallel to speed up the tests
37
+ runner : [1, 2]
33
38
steps :
34
39
- name : Checkout code
35
40
uses : actions/checkout@v4
62
67
--coverage=${{ env.ENABLE_COVERAGE }} \
63
68
--ci \
64
69
--max-workers ${{ steps.cpu-cores.outputs.count }} \
70
+ --shard ${{ matrix.runner }}/${{ strategy.job-total }} \
65
71
--cacheDirectory /tmp/jest_cache
72
+ env :
73
+ JEST_SONAR_UNIQUE_OUTPUT_NAME : true
74
+
75
+ # tell jest to use coloured output
76
+ FORCE_COLOR : true
77
+
78
+ - name : Move coverage files into place
79
+ if : env.ENABLE_COVERAGE == 'true'
80
+ run : mv coverage/lcov.info coverage/${{ steps.setupNode.outputs.node-version }}-${{ matrix.runner }}.lcov.info
66
81
67
82
- name : Upload Artifact
68
83
if : env.ENABLE_COVERAGE == 'true'
You can’t perform that action at this time.
0 commit comments