Speed up CI (#928)

* use faster CI runner

* slower machine for all but tests, try 16 core for tests

* try splitting tests for more parallelism

* bigger machine for slowest tests
This commit is contained in:
James Wilson
2023-04-24 16:55:36 +01:00
committed by GitHub
parent d3e20e993b
commit e583aa987e
+96 -3
View File
@@ -114,8 +114,101 @@ jobs:
command: test
args: --doc
tests:
name: Cargo test
test-docs:
name: "Test: docs"
runs-on: ubuntu-latest-8-cores
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Download Substrate
run: |
curl $SUBSTRATE_URL --output substrate --location
chmod +x substrate
./substrate --version
mkdir -p ~/.local/bin
mv substrate ~/.local/bin
- name: Install Rust stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Rust Cache
uses: Swatinem/rust-cache@6fd3edff6979b79f87531400ad694fb7f2c84b1f # v2.2.1
- name: Run tests
uses: actions-rs/cargo@v1.0.3
with:
command: test
args: --doc
test-integration:
name: "Test: integration tests"
runs-on: ubuntu-latest-16-cores
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Download Substrate
run: |
curl $SUBSTRATE_URL --output substrate --location
chmod +x substrate
./substrate --version
mkdir -p ~/.local/bin
mv substrate ~/.local/bin
- name: Install Rust stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Rust Cache
uses: Swatinem/rust-cache@6fd3edff6979b79f87531400ad694fb7f2c84b1f # v2.2.1
- name: Run tests
uses: actions-rs/cargo@v1.0.3
with:
command: test
args: --all-targets --package integration-tests
test-ui:
name: "Test: UI tests"
runs-on: ubuntu-latest-16-cores
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Download Substrate
run: |
curl $SUBSTRATE_URL --output substrate --location
chmod +x substrate
./substrate --version
mkdir -p ~/.local/bin
mv substrate ~/.local/bin
- name: Install Rust stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Rust Cache
uses: Swatinem/rust-cache@6fd3edff6979b79f87531400ad694fb7f2c84b1f # v2.2.1
- name: Run tests
uses: actions-rs/cargo@v1.0.3
with:
command: test
args: --all-targets --package ui-tests
tests-other:
name: "Test: other (mainly unit) tests"
runs-on: ubuntu-latest
steps:
- name: Checkout sources
@@ -143,7 +236,7 @@ jobs:
uses: actions-rs/cargo@v1.0.3
with:
command: test
args: --all-targets --workspace
args: --all-targets --workspace --exclude ui-tests --exclude integration-tests
clippy:
name: Cargo clippy