Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 96 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down