Skip to content

CI

CI #140

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@v4
- 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@v4
- 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.56, stable, nightly]
name: 'Test/${{ matrix.rust }}/Features="${{ matrix.features }}"'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
id: actions-rs
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Test
run: |
cargo test
sh -c "cd custom-format-macros && cargo test"
sh -c "cd custom-format-tests && cargo test"
env:
CARGO_NET_GIT_FETCH_WITH_CLI: true