Skip to content

rework: simplify API by reexporting public types #48

rework: simplify API by reexporting public types

rework: simplify API by reexporting public types #48

Workflow file for this run

name: CI
on:
push:
branches: ["*"]
pull_request:
branches: ["main"]
merge_group:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- "1.65"
- stable
- beta
- nightly
cargo-update:
- true
include:
- rust: stable
cargo-update: false
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Update
if: matrix.cargo-update
run: cargo update
- name: Run tests
run: cargo test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt clippy
- name: Run rustfmt check
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all --all-targets -- -D warnings