Drink integration #206
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: Checks | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
jobs: | ||
rust-checks: | ||
runs-on: [self-hosted, Linux, X64, large] | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
- name: Install Rust toolchain | ||
working-directory: legacy-shielder | ||
uses: actions-rs/toolchain@v1 | ||
Check failure on line 22 in .github/workflows/checks.yml GitHub Actions / ChecksInvalid workflow file
|
||
- name: Install WASM target | ||
working-directory: legacy-shielder | ||
run: rustup target add wasm32-unknown-unknown | ||
- name: Run format check for `shielder/cli` | ||
working-directory: legacy-shielder | ||
run: cd cli/ && cargo fmt --all --check | ||
- name: Run clippy for `shielder/cli` | ||
working-directory: legacy-shielder | ||
run: cd cli/ && cargo clippy --all-features -- --no-deps -D warnings | ||
- name: Run tests for `shielder/cli` | ||
working-directory: legacy-shielder | ||
run: cd cli/ && cargo test | ||
- name: Run format check for `shielder/contract` | ||
working-directory: legacy-shielder | ||
run: cd contract/ && cargo fmt --all --check | ||
- name: Run clippy for `shielder/contract` | ||
working-directory: legacy-shielder | ||
run: cd contract/ && cargo clippy --all-features -- --no-deps -D warnings | ||
- name: Run tests for `shielder/contract` | ||
working-directory: legacy-shielder | ||
run: cd contract/ && cargo test | ||
- name: Run format check for `shielder/public_token` | ||
working-directory: legacy-shielder | ||
run: cd public_token/ && cargo fmt --all --check | ||
- name: Run clippy for `shielder/public_token` | ||
working-directory: legacy-shielder | ||
run: cd public_token/ && cargo clippy --all-features -- --no-deps -D warnings | ||
- name: Run tests for `shielder/public_token` | ||
working-directory: legacy-shielder | ||
run: cd public_token/ && cargo test | ||
build-contracts: | ||
runs-on: [self-hosted, Linux, X64, large] | ||
env: | ||
DOCKER_IMAGE: "public.ecr.aws/p6e8q1z1/ink-dev:1.0.0" | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
- name: Install Rust toolchain | ||
working-directory: legacy-shielder | ||
uses: actions-rs/toolchain@v1 | ||
- name: Install WASM target | ||
working-directory: legacy-shielder | ||
run: rustup target add wasm32-unknown-unknown | ||
- name: Build public token contract | ||
working-directory: legacy-shielder | ||
run: | | ||
docker run \ | ||
-v ${{ github.workspace }}:/code \ | ||
--platform linux/amd64 \ | ||
${{ env.DOCKER_IMAGE }} \ | ||
cargo contract build --manifest-path public_token/Cargo.toml | ||
- name: Build shielder contract | ||
working-directory: legacy-shielder | ||
run: | | ||
docker run \ | ||
-v ${{ github.workspace }}:/code \ | ||
--platform linux/amd64 \ | ||
${{ env.DOCKER_IMAGE }} \ | ||
cargo contract build --manifest-path contract/Cargo.toml |