Skip to content

Refactor GitHub Actions workflows for improved readability and mainta… #61

Refactor GitHub Actions workflows for improved readability and mainta…

Refactor GitHub Actions workflows for improved readability and mainta… #61

Workflow file for this run

name: Rust CI
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache Cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Build
run: cargo build
- name: Run tests
run: cargo test