提交 14cb61b8 authored 作者: Serhij S's avatar Serhij S

act

上级 ac924182
name: Rust name: Rust check
on: on:
push: push:
branches: [ "main" ] branches: [ "main" ]
pull_request: pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
jobs: jobs:
build: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Cargo test - name: Cargo test
run: cargo test --verbose run: cargo test --verbose --locked --all-features --all-targets
fmt:
runs-on: ubuntu-latest
steps:
- name: Cargo fmt - name: Cargo fmt
run: cargo fmt --check run: cargo fmt --check
- name: cargo machete clippy:
run: cargo machete runs-on: ubuntu-latest
- name: clippy - name: clippy
run: | run: |
cargo clippy -- -W clippy::all -W clippy::pedantic \ cargo clippy -- -W clippy::all -W clippy::pedantic \
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论