feat: add polytone #12
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: polytone | |
on: | |
pull_request: | |
paths: | |
- 'cosmwasm/polytone/**' | |
- '.github/workflows/polytone.yml' | |
env: | |
WORKING_DIRECTORY: cosmwasm/polytone | |
JUST_VERSION: 1.25.2 | |
GO_VERSION: 1.19 | |
jobs: | |
clippy_check: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ${{ env.WORKING_DIRECTORY }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: clippy | |
override: true | |
- uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --manifest-path ${{env.WORKING_DIRECTORY}}/Cargo.toml | |
# This utility formats all bin and lib files of the current crate using rustfmt. | |
rust_fmt: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ${{ env.WORKING_DIRECTORY }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt | |
override: true | |
- name: Run cargo fmt | |
run: cargo fmt --all -- --check | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ${{ env.WORKING_DIRECTORY }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Get cached just | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cargo/bin/just | |
key: ${{ runner.os }}-just-${{ env.JUST_VERSION }} | |
- name: Install just | |
run: cargo install just || true | |
- name: simulation tests | |
run: just simtest | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ${{ env.WORKING_DIRECTORY }} | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Run cargo test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --manifest-path ${{env.WORKING_DIRECTORY}}/Cargo.toml |