Skip to content

CI

CI #144

Workflow file for this run

name: CI
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
schedule:
- cron: "0 0 * * 0"
jobs:
check:
name: "Check"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust
id: actions-rs
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Format
run: cargo fmt --all -- --check
- name: Lint
run: cargo clippy -- -D warnings
doc:
name: "Doc"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust
id: actions-rs
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Doc
run: RUSTDOCFLAGS="-D warnings --cfg docsrs" cargo doc --all-features --no-deps
test:
strategy:
matrix:
rust: [1.45, 1.55, stable, nightly]
features: ["", alloc, std]
include:
- const: const
- rust: 1.45
const: ""
name: "Test/${{ matrix.rust }}/Features=${{ matrix.const }},${{ matrix.features }}"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust
id: actions-rs
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Test
run: cargo test --no-default-features --features=${{ matrix.const }},${{ matrix.features }}
env:
CARGO_NET_GIT_FETCH_WITH_CLI: true