Skip to content

Commit

Permalink
ci: add verification workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lus committed Apr 4, 2024
1 parent 77b62b0 commit bb2e037
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build_and_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and check

on:
push:
branches-ignore:
- 'skip-ci/**'
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'

permissions:
contents: read
checks: write

jobs:
build_and_check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
toolchain: [stable, nightly, beta]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: clippy, rustfmt
- name: Build project
run: cargo build --all-features
- name: Run tests
run: cargo test --all-features
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
name: Clippy results (${{ matrix.toolchain }})

0 comments on commit bb2e037

Please sign in to comment.