Skip to content

Merge pull request #22 from CeerDecy/feature/authorization #26

Merge pull request #22 from CeerDecy/feature/authorization

Merge pull request #22 from CeerDecy/feature/authorization #26

Workflow file for this run

name: Cargo Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Run Cargo Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- 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-target-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-target-
- name: Run cargo test
run: cargo test --all --verbose