Skip to content

Commit

Permalink
ci: validation workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hougesen committed Oct 29, 2023
1 parent 5262bb9 commit 1e5540a
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: validate

on:
push:
workflow_run:

jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Check formatting
run: cargo fmt --check
- name: Check for clippy lints
run: cargo clippy
test:
name: test
strategy:
fail-fast: false
matrix:
rust-version:
- nightly
- stable
- '1.63'
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust-version }}
- name: Build
run: cargo build
- name: Test
run: cargo test

0 comments on commit 1e5540a

Please sign in to comment.