Skip to content

445 replace oraclekey enums used in treasury buyout extension #855

445 replace oraclekey enums used in treasury buyout extension

445 replace oraclekey enums used in treasury buyout extension #855

Workflow file for this run

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