Removed incorrect previous estimate from documentation #204
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: General Rust | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run cargo fmt | |
run: make fmt-rust-check | |
test-prepare: | |
name: Prepare tests | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.create-matrix.outputs.matrix }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Create test matrix | |
id: create-matrix | |
run: | | |
echo "matrix=$(python3 scripts/create-test-matrix.py)" >> $GITHUB_OUTPUT | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
needs: test-prepare | |
strategy: | |
matrix: | |
test: ${{ fromJson(needs.test-prepare.outputs.matrix) }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust dependencies | |
run: | | |
rustup component add rust-src | |
- name: Download substrate-contracts-node | |
run: | | |
wget https://github.com/paritytech/substrate-contracts-node/releases/latest/download/substrate-contracts-node-linux.tar.gz -P $HOME/substrate-contracts-node | |
tar -xvf $HOME/substrate-contracts-node/substrate-contracts-node-linux.tar.gz -C $HOME/substrate-contracts-node | |
mkdir -p $HOME/.local/bin | |
cp $HOME/substrate-contracts-node/artifacts/substrate-contracts-node-linux/substrate-contracts-node $HOME/.local/bin | |
echo "$HOME/.local/bin" >> $GITHUB_PATH | |
- name: Run test | |
run: | | |
cd test-cases/${{ matrix.test }} | |
cargo test --all --all-features |