Adding tests to Github CI #20 #24
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
name: CI Build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cache repository | |
uses: actions/cache@v4 | |
with: | |
path: repository_path/.git | |
key: repository-dir | |
- uses: actions/checkout@v4 | |
with: | |
path: repository_path | |
submodule: true | |
- name: Install Rust | |
run: rustup toolchain install stable --profile minimal | |
- uses: Swatinem/rust-cache@v2 | |
- name: Test | |
run: cargo test --release |