ci.yml install bash #14
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: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| env: | |
| RUSTFLAGS: "-D warnings" | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| container: rust:alpine | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: bash # required for dtolnay/rust-toolchain on alpine | |
| run: apk add --no-cache bash | |
| - name: install | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| components: clippy | |
| - name: clippy | |
| run: cargo clippy --all-features | |
| test: | |
| runs-on: ubuntu-latest | |
| container: rust:alpine | |
| needs: check | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: test | |
| run: cargo test --all-features |