This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
Bump clap from 4.3.2 to 4.4.1 #2337
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: Rust | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
rustfmt: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
components: rustfmt | |
- uses: actions/checkout@v3 | |
- name: Cargo fmt | |
uses: actions-rs/cargo@v1 | |
with: | |
toolchain: nightly | |
command: fmt | |
args: --all -- --check | |
clippy: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
components: clippy | |
- uses: actions/checkout@v3 | |
- name: Cargo clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
toolchain: stable | |
command: clippy | |
args: --workspace --exclude rust_analyzer_wasm --exclude contract --all-targets --all-features -- -D warnings | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --verbose | |
- name: Pull docker image | |
run: docker pull docker.io/achimcc/ink-compiler:latest | |
- name: Tag docker image | |
run: docker tag docker.io/achimcc/ink-compiler:latest ink-compiler | |
- name: Run tests | |
run: cargo test --workspace --exclude rust_analyzer_wasm --verbose |