Skip to content

Commit

Permalink
Added initial CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
dragostis committed Sep 13, 2024
1 parent 9a9a0d1 commit fbbf69d
Show file tree
Hide file tree
Showing 5 changed files with 381 additions and 5 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Continuous integration

on:
push:

jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
- uses: Swatinem/rust-cache@v2
- run: cargo check --all --no-default-features
- run: cargo check --all --all-features

test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
- uses: Swatinem/rust-cache@v2
- run: cargo test --all --no-default-features
- run: cargo test --all --all-features

fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
with:
components: rustfmt
- run: cargo fmt --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --all --no-default-features -- -D warnings
- run: cargo clippy --all --all-features -- -D warnings

miri:
name: Miri
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: miri
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@nextest
- run: cargo +nightly miri setup
- run: cargo +nightly miri test -- --skip join_very_long --skip join_panic
Loading

0 comments on commit fbbf69d

Please sign in to comment.