Skip to content

simplify GitHub Actions workflow #27

simplify GitHub Actions workflow

simplify GitHub Actions workflow #27

Workflow file for this run

name: Workflow
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- main
env:
CARGO_TERM_VERBOSE: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run test
run: cargo test