Skip to content

Merge pull request #70 from Akvize/readme-usage #18

Merge pull request #70 from Akvize/readme-usage

Merge pull request #70 from Akvize/readme-usage #18

Workflow file for this run

name: master
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -Dwarnings
RUSTDOCFLAGS: -Dwarnings
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Enable caching
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Format
run: cargo fmt --check
- name: Lint
run: cargo clippy --all
- name: Build
run: cargo build --all --verbose
- name: Run tests
run: cargo test --all --verbose
- name: Generate the documentation
run: cargo doc --all --verbose
- name: Check that the crate is publishable
run: cargo publish --allow-dirty --dry-run