Skip to content

polishing up (#14)

polishing up (#14) #1

Workflow file for this run

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