Skip to content

Merge pull request #34 from matagus/turn-run-function-into-cli-struct… #34

Merge pull request #34 from matagus/turn-run-function-into-cli-struct…

Merge pull request #34 from matagus/turn-run-function-into-cli-struct… #34

Workflow file for this run

name: Rust Tests
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v4
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- name: Build
run: cargo build --verbose
- name: Check
run: cargo check --all
- name: Run tests
run: cargo test --verbose