Use built-in constant instead of a magic number #24
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: CI | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: Test suite | |
runs-on: | |
- ubuntu-latest | |
- windows-latest | |
timeout-minutes: 2 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
- run: cargo test | |
test-release: | |
name: Test suite | |
runs-on: | |
- ubuntu-latest | |
- windows-latest | |
timeout-minutes: 2 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
- run: cargo test --release |