178 add benchmarks for custom pallets per runtime #898
Workflow file for this run
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: Test Code | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
build-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/shared | |
- name: Install toolchain | |
# Call `rustup show` as a hack so that the toolchain defined in rust-toolchain.toml is installed | |
run: rustup show | |
# Enable this for clippy linting. | |
# - name: Check and Lint Code | |
# run: cargo +nightly-2021-12-01 clippy -- -D warnings | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Check Code | |
run: cargo check | |
test-code: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/shared | |
- name: Remove rust-toolchain.toml | |
# To make sure that the nightly version will be used all throughout | |
run: | | |
rm /home/runner/work/pendulum/pendulum/rust-toolchain.toml | |
- name: Setup nightly Rust toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
toolchain: nightly-2024-04-18 | |
components: rustfmt, clippy | |
target: wasm32-unknown-unknown | |
- name: Setup nightly Rust as default | |
run: rustup default nightly-2024-04-18 | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Test | |
uses: actions-rs/cargo@v1 | |
with: | |
toolchain: nightly-2024-04-18 | |
command: test |