Skip to content

Feat/database encapsulation #374

Feat/database encapsulation

Feat/database encapsulation #374

Workflow file for this run

on:
push:
paths:
- 'src/**'
branches:
- main
pull_request:
paths:
- 'src/**'
name: Test rust
jobs:
build_and_test:
name: Rust project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Add required index.html
run: |
touch ./static/index.html
- uses: actions-rs/cargo@v1
with:
command: test