Skip to content

Commit

Permalink
ci: move check job in this repository
Browse files Browse the repository at this point in the history
  • Loading branch information
iTrooz committed Aug 27, 2023
1 parent 31d4d66 commit 86bd5ea
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,45 @@ concurrency: ci-${{ github.ref }}

jobs:
check:
uses: iTrooz/vtavernier-github-workflows/.github/workflows/check-rust.yml@v1
runs-on: ubuntu-latest

env:
RUSTFLAGS: "-D warnings"
RUSTDOCFLAGS: "-D warnings"

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Cargo cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

# Calling rustup show will install the toolchain in rust-toolchain
- name: Install toolchain
id: rustup
run: rustup show

- name: Fetch dependencies
run: cargo fetch

- name: Run cargo fmt
run: cargo fmt -- --check

- name: Run cargo check
run: cargo check --all-features

- name: Run cargo clippy
run: cargo clippy --all-features

- name: Run cargo doc
run: cargo doc --all-features --no-deps

test:
runs-on: ${{ matrix.runs-on }}
Expand Down

0 comments on commit 86bd5ea

Please sign in to comment.