Update Rust crate thiserror to v2 #2032
Workflow file for this run
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 and Test | |
on: | |
push: | |
schedule: | |
- cron: 0 0 * * * | |
jobs: | |
check: | |
name: Check the code | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
rust: [stable, beta] | |
steps: | |
- name: Install the appropriate Rust toolchain | |
run: | | |
rustup toolchain install ${{ matrix.rust }} | |
rustup default ${{ matrix.rust }} | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: jdx/mise-action@5083fe46898c414b2475087cc79da59e7da859e8 # v2 | |
- name: Run rustfmt | |
run: | | |
rustup component add rustfmt | |
mise run format-check | |
- name: Run clippy | |
run: | | |
rustup component add clippy | |
mise run clippy | |
test: | |
name: Test the code | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
rust: [stable, beta] | |
steps: | |
- name: Install the appropriate Rust toolchain | |
run: | | |
rustup toolchain install ${{ matrix.rust }} | |
rustup default ${{ matrix.rust }} | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: jdx/mise-action@5083fe46898c414b2475087cc79da59e7da859e8 # v2 | |
- name: Run cargo test | |
run: | | |
mise run test | |
- name: Ensure index.d.ts is up-to-date after tests were run | |
run: | | |
mise run diff |