polishing up (#14) #1
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
on: | |
- push | |
- pull_request | |
jobs: | |
test-unit: | |
runs-on: ubuntu-latest | |
container: rust:1.64-alpine3.15 | |
env: | |
CARGO_HOME: ${{ github.workspace }}/.cargo | |
steps: | |
- uses: actions/checkout@v3 | |
- run: apk add tar | |
- uses: actions/cache@v3 | |
with: | |
key: ${{ github.job }}-${{ hashFiles('Cargo.lock') }} | |
path: | | |
.cargo/ | |
target/ | |
- run: apk add build-base | |
- run: cargo test --all-targets | |
test-lint: | |
runs-on: ubuntu-latest | |
container: rust:1.64-alpine3.15 | |
env: | |
CARGO_HOME: ${{ github.workspace }}/.cargo | |
steps: | |
- uses: actions/checkout@v3 | |
- run: apk add tar | |
- uses: actions/cache@v3 | |
with: | |
key: ${{ github.job }}-${{ hashFiles('Cargo.lock') }} | |
path: | | |
.cargo/ | |
target/ | |
- run: apk add musl-dev | |
- run: rustup component add clippy | |
- run: cargo clippy --all-targets |