Skip to content

test run-tests CI and remove sudo cmd #271

test run-tests CI and remove sudo cmd

test run-tests CI and remove sudo cmd #271

Workflow file for this run

name: Basic check and lint
on:
push:
# branches: [ main ]
# paths:
# - Cargo.toml
# - Cargo.lock
# - move-mutator/**
# - move-spec-test/**
# - move-mutation-test/**
# - .github/workflows/check-and-lint.yml
# pull_request:
# branches: [ main ]
# paths:
# - Cargo.toml
# - Cargo.lock
# - move-mutator/**
# - move-spec-test/**
# - move-mutation-test/**
# - .github/workflows/check-and-lint.yml
env:
CARGO_TERM_COLOR: always
jobs:
basic-lint-and-check:
runs-on: self-hosted
name: Basic ci-check for fmt/clippy/check
steps:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Rustfmt Check
uses: actions-rust-lang/rustfmt@v1
- name: Run clippy
run: RUSTFLAGS="--cfg tokio_unstable" cargo clippy --all-targets -- -D warnings
- name: Run check
run: RUSTFLAGS="--cfg tokio_unstable" cargo check --all-targets