chore(deps): update rust crate thiserror to v2 #1095
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: ci | |
on: | |
pull_request: | |
push: | |
branches: [ main ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: full | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8 # v1 | |
with: | |
components: clippy | |
cache: false | |
rustflags: '' | |
- name: Cache rust build files | |
uses: Leafwing-Studios/cargo-cache@5d5d363fa3b9886d45c4705228c5c73ccea17636 # v2 | |
- name: check (release) | |
run: cargo check --workspace --all-features --release | |
- name: clippy | |
run: cargo clippy --workspace --all-features -- -D warnings --force-warn deprecated --force-warn dead-code | |
## Tests | |
# Install sops (needed for decrypting tests .env file) | |
- name: Setup sops | |
uses: nhedger/setup-sops@358bac533e4e92f9ce9f9da563d6265929c88cda # v2 | |
# Install age (needed for decrypting tests .env file) | |
- name: Setup age | |
uses: alessiodionisi/setup-age-action@82b9aea163ade7fe23441552a514cf666b214077 # v1.3.0 | |
- name: unit-tests | |
uses: LNSD/sops-exec-action@6da1fbca63459d9796097496d5f5e6233555b31a # v1 | |
env: | |
SOPS_AGE_KEY: ${{ secrets.IT_TESTS_AGE_KEY }} | |
with: | |
env_file: .env | |
run: cargo test --workspace --all-features --lib | |
- name: doc-tests | |
uses: LNSD/sops-exec-action@6da1fbca63459d9796097496d5f5e6233555b31a # v1 | |
env: | |
SOPS_AGE_KEY: ${{ secrets.IT_TESTS_AGE_KEY }} | |
with: | |
env_file: .env | |
run: cargo test --workspace --all-features --doc | |
- name: integration-tests | |
uses: LNSD/sops-exec-action@6da1fbca63459d9796097496d5f5e6233555b31a # v1 | |
env: | |
SOPS_AGE_KEY: ${{ secrets.IT_TESTS_AGE_KEY }} | |
with: | |
env_file: .env | |
run: cargo test --workspace --all-features --test '*' | |
format: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Setup Rust toolchain | |
uses: actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8 # v1 | |
with: | |
toolchain: nightly | |
components: rustfmt | |
cache: false | |
- run: cargo +nightly fmt --all -- --check |