Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
push:
branches: [main]
pull_request:
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1

jobs:
check:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
include:
- name: Formatting
command: cargo fmt --all -- --check
- name: Clippy
command: cargo clippy --locked --all-targets -- -D warnings
- name: Tests
command: cargo test --locked
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup show && rustup component add rustfmt clippy
- uses: Swatinem/rust-cache@v2
- name: ${{ matrix.name }}
env:
BOLERO_RANDOM_TEST_TIME_MS: 5000
run: ${{ matrix.command }}
Loading