Skip to content

chore: init package provide basic structure #1

chore: init package provide basic structure

chore: init package provide basic structure #1

Workflow file for this run

name: 🎳 Run Tests
on:
push:
pull_request:
types: [opened, synchronize]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repository
uses: actions/checkout@v3
- name: 🫡 Set up Rust
uses: actions/setup-rust@v1
with:
rust-version: stable
- 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: 📌 Cache cargo build
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build-
- name: 🔨 Build
run: cargo build --verbose
- name: 🎳 Run tests
run: cargo test --verbose