chore(deps): bump clap_complete from 4.6.3 to 4.6.5 #394
Workflow file for this run
This file contains hidden or 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
| ## references: | |
| # cache: https://github.com/actions/cache/blob/main/examples.md#rust---cargo | |
| # audit: https://github.com/actions-rs/audit-check | |
| # "needs": https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idneeds | |
| name: Build | |
| on: | |
| push: | |
| branches: ["*"] | |
| paths-ignore: | |
| - "**/docs/**" | |
| - "**.md" | |
| - "community/**" | |
| pull_request: | |
| branches: [main] | |
| paths-ignore: | |
| - "**/docs/**" | |
| - "**.md" | |
| - "community/**" | |
| workflow_call: | |
| merge_group: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_INCREMENTAL: 0 | |
| SCCACHE_GHA_ENABLED: "true" | |
| RUSTC_WRAPPER: "sccache" | |
| jobs: | |
| typos: | |
| name: typos | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: crate-ci/typos@master | |
| with: | |
| config: ./typos.toml | |
| check: | |
| name: check | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| version: ["macos-latest", "ubuntu-latest", "windows-latest"] | |
| runs-on: ${{ matrix.version }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: setup | rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| components: clippy, rustfmt | |
| - uses: mozilla-actions/sccache-action@v0.0.10 | |
| - run: cargo check | |
| lint: | |
| name: lint | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| version: ["macos-latest", "ubuntu-latest", "windows-latest"] | |
| cargo-cmd: | |
| - fmt --all -- --check | |
| - clippy --all-targets --all-features -- -D warnings | |
| runs-on: ${{ matrix.version }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: setup | rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| components: clippy, rustfmt | |
| - uses: mozilla-actions/sccache-action@v0.0.10 | |
| - run: cargo ${{ matrix['cargo-cmd'] }} | |
| tests: | |
| name: test | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| version: ["macos-latest", "ubuntu-latest", "windows-latest"] | |
| rust: [nightly, stable] | |
| runs-on: ${{ matrix.version }} | |
| continue-on-error: ${{ matrix.rust == 'nightly' }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: setup | rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| - uses: mozilla-actions/sccache-action@v0.0.10 | |
| - name: install zsh (Linux) | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update -y && sudo apt-get install -y zsh | |
| - name: prime zsh env for e2e tests | |
| if: runner.os != 'Windows' | |
| shell: bash | |
| run: echo "alias la='ls -lAh'" >> ~/.zshrc | |
| - name: cargo test | |
| shell: bash | |
| run: cargo test --verbose --all --locked | |
| env: | |
| RUST_LOG: debug | |
| RUST_BACKTRACE: full | |
| - name: e2e tests | |
| if: runner.os != 'Windows' | |
| shell: bash | |
| run: cargo test --verbose --locked --test e2e -- --ignored | |
| env: | |
| RUST_LOG: debug | |
| RUST_BACKTRACE: full | |
| - name: smoke tests | |
| shell: bash | |
| run: | | |
| cargo run --bin am -- --version | |
| cargo run --bin am -- --help | |
| coverage: | |
| name: code coverage | |
| runs-on: ubuntu-latest | |
| env: | |
| RUSTC_WRAPPER: "" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: setup | rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: nightly | |
| components: clippy, rustfmt | |
| - name: Install cargo-llvm-cov | |
| uses: taiki-e/install-action@cargo-llvm-cov | |
| - name: Generate code coverage | |
| run: cargo llvm-cov --all-features --workspace --codecov --output-path codecov.json | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v6.0.0 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| with: | |
| files: codecov.json | |
| verbose: true | |
| fail_ci_if_error: false | |
| audit: | |
| name: security audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: setup | rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| - uses: mozilla-actions/sccache-action@v0.0.10 | |
| - name: audit | |
| uses: actions-rs/audit-check@v1 | |
| continue-on-error: true | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| publish-dry-run: | |
| name: publish dry run | |
| if: github.ref_type != 'tag' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: setup | rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| - uses: mozilla-actions/sccache-action@v0.0.10 | |
| - name: publish dry run | |
| run: | | |
| cargo publish --dry-run -p amoxide | |
| # amoxide-tui: cargo publish --dry-run would verify against the stale | |
| # crates.io amoxide. The workspace `cargo check` job already verifies | |
| # compilation. Here we just ensure the tarball is well-formed. | |
| cargo package --no-verify -p amoxide-tui | |
| docs: | |
| name: docs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: setup | rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| - uses: mozilla-actions/sccache-action@v0.0.10 | |
| - name: check documentation | |
| env: | |
| RUSTDOCFLAGS: -D warnings | |
| run: cargo doc --no-deps --all-features |