Skip to content

feat: prep for unit tests #3

feat: prep for unit tests

feat: prep for unit tests #3

Workflow file for this run

name: build
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: build + run
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: move .env
run: |
cp .env.example .env
- name: Install Deps
run: |
cargo install sqlx-cli --no-default-features --features sqlite && touch config/db.sqlite3 && DATABASE_URL=sqlite:./config/db.sqlite3 && sqlx migrate run
- name: Build
run: cargo build --verbose