Skip to content

Merge run and debug into a single command #3

Merge run and debug into a single command

Merge run and debug into a single command #3

Workflow file for this run

name: Test
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
jobs:
test:
name: Simply binary
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Check formatting
run: cargo fmt --check
- name: Build
run: cargo build --release
- name: Run tests
run: cargo test