Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Bump actions/checkout from 3 to 4 #2342

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #2342

Workflow file for this run

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@v4
- 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@v4
- 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@v4
- 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