Skip to content

Fix utils tests and add GitHub Actions workflow for testing (#1) #5

Fix utils tests and add GitHub Actions workflow for testing (#1)

Fix utils tests and add GitHub Actions workflow for testing (#1) #5

Workflow file for this run

name: Rust Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
# Install dependencies
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config
# Cache dependencies to speed up builds
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
# Run tests
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose