Skip to content

Commit

Permalink
add build validation action
Browse files Browse the repository at this point in the history
  • Loading branch information
radek00 committed Jul 21, 2024
1 parent da8219e commit 307e4f3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/build-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build validation
on: [pull_request]

jobs:
build:
name: build-${{matrix.os}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable

- name: Build
run: cargo build

- name: Check formatting
run: cargo fmt --all -- --check

- name: Check clippy
run: cargo clippy --all-targets --all-features -- -D warnings

- name: Check tests
run: cargo test --all-features

0 comments on commit 307e4f3

Please sign in to comment.