0.0.1-alpha: rust:1.76.0-alpine in GitHub Actions #3
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
| name: Run tests and validate version | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| # Cargo.toml has "rust-version" (MSRV) 1.31. But, 1.37 is the oldest Alpine docker image. See | |
| # https://hub.docker.com/_/rust/tags?name=alpine&ordering=-last_updated. | |
| # | |
| # rust:1.37-alpine was failing some GitHub's extra checks: | |
| # https://github.com/peter-lyons-kehl/prudent/actions/runs/18773758118/job/53563574851 | |
| # Other Rust Alpine images that failed: rust:1.54.0-alpine | |
| container: rust:1.76.0-alpine | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Tests | |
| shell: sh | |
| run: | | |
| rustup component add clippy rustfmt | |
| cargo clippy | |
| cargo fmt --check | |
| cargo doc --no-deps --quiet | |
| cargo test | |
| cargo test --release | |
| rustup install nightly --profile minimal | |
| rustup +nightly component add miri | |
| cargo +nightly miri test |