mirror of
https://github.com/msfjarvis/gitice
synced 2025-08-14 19:47:01 +05:30
all: sync up with other Rust repos
This commit is contained in:
parent
e0deedafca
commit
593a73a506
9 changed files with 161 additions and 88 deletions
58
.github/workflows/check.yml
vendored
58
.github/workflows/check.yml
vendored
|
@ -1,57 +1,15 @@
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
- main
|
||||
- renovate/**
|
||||
paths-ignore:
|
||||
- README.md
|
||||
pull_request:
|
||||
|
||||
paths-ignore:
|
||||
- README.md
|
||||
|
||||
name: Check Rust code
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Rust nightly with rustfmt and clippy
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: nightly
|
||||
components: rustfmt, clippy
|
||||
|
||||
- name: Cache cargo registry and build outputs
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
target
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
|
||||
|
||||
- name: Check formatting
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: -- --check
|
||||
|
||||
- name: Annotate commit with clippy warnings
|
||||
if: "${{ github.event_name == 'push' }}"
|
||||
uses: actions-rs/clippy-check@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
args: --all-features
|
||||
|
||||
- name: Run cargo check
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: check
|
||||
|
||||
- name: Run cargo test
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
|
||||
- name: Run cargo doc
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: doc
|
||||
args: --no-deps
|
||||
uses: msfjarvis/shared-workflows/.github/workflows/test-rust-project.yml@main
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue