mirror of https://github.com/vector-im/riot-web
Optimise Jest run in CI (#23693)
parent
2e81324e27
commit
e21eb2505c
|
@ -25,8 +25,12 @@ jobs:
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: "./scripts/layered.sh"
|
run: "./scripts/layered.sh"
|
||||||
|
|
||||||
|
- name: Get number of CPU cores
|
||||||
|
id: cpu-cores
|
||||||
|
uses: SimenB/github-actions-cpu-cores@v1
|
||||||
|
|
||||||
- name: Run tests with coverage
|
- name: Run tests with coverage
|
||||||
run: "yarn coverage --ci"
|
run: "yarn coverage --ci --reporters github-actions --max-workers ${{ steps.cpu-cores.outputs.count }}"
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
|
Loading…
Reference in New Issue