chore(deps): bump minijinja from 0.31.0 to 0.32.1 (#124) #423
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: Build Faster | |
on: | |
push: | |
branches: [ '*' ] | |
paths-ignore: | |
- "**/docs/**" | |
- "**.md" | |
pull_request: | |
branches: [ main ] | |
workflow_call: | |
jobs: | |
check: | |
name: build crate | |
strategy: | |
fail-fast: false | |
matrix: | |
version: [ 'macos-latest', 'ubuntu-latest', 'windows-latest'] | |
rust: [ nightly, stable ] | |
runs-on: ${{ matrix.version }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup | rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
default: true | |
profile: minimal | |
components: clippy, rustfmt | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo install cargo-insta | |
- run: cargo check | |
continue-on-error: ${{ matrix.rust == 'nightly' }} | |
- run: cargo fmt --all -- --check | |
continue-on-error: ${{ matrix.rust == 'nightly' }} | |
- run: cargo clippy --all-targets --all-features -- -D warnings | |
continue-on-error: ${{ matrix.rust == 'nightly' }} | |
- run: cargo test --all-features --all --locked -- -Z unstable-options | |
continue-on-error: ${{ matrix.rust == 'nightly' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: cargo insta test | |
continue-on-error: ${{ matrix.rust == 'nightly' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: smoke tests | |
run: | | |
cargo run -- --version | |
cargo run -- --help | |
coverage: | |
name: coverage report | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup | rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
default: true | |
profile: minimal | |
- uses: Swatinem/rust-cache@v2 | |
- name: cargo tarpaulin | |
uses: actions-rs/tarpaulin@v0.1 | |
with: | |
version: '0.15.0' | |
args: '--all-features -- --test-threads 1' | |
- name: Upload to codecov.io | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: cobertura.xml | |
name: code-coverage-report | |
verbose: true | |
audit: | |
name: security audit | |
needs: check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup | rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
default: true | |
profile: minimal | |
- uses: Swatinem/rust-cache@v2 | |
- name: audit | |
uses: actions-rs/audit-check@v1 | |
continue-on-error: true | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
publish-dry-run: | |
name: publish dry run | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup | rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
default: true | |
profile: minimal | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo publish --dry-run -p curlz | |
docs: | |
name: docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup | rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
default: true | |
profile: minimal | |
- uses: Swatinem/rust-cache@v2 | |
- name: check documentation | |
env: | |
RUSTDOCFLAGS: -D warnings | |
run: cargo doc --no-deps --all-features |