Skip to content

Merge pull request #6 from frederikstroem/release-v0.1.7 #22

Merge pull request #6 from frederikstroem/release-v0.1.7

Merge pull request #6 from frederikstroem/release-v0.1.7 #22

name: 🛠️ Build and Test
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout code
uses: actions/checkout@v3
- name: 🗃️ Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: 🔨 Build
run: cargo build --verbose
- name: 🧪 Run tests
run: cargo test --verbose