Merge pull request #81 from Akvize/merge-service-internal-methods #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |