Skip to content

ci: add database url env variable for sqlx #6

ci: add database url env variable for sqlx

ci: add database url env variable for sqlx #6

Workflow file for this run

name: Build and Test
on:
push:
workflow_dispatch:
jobs:
fmt:
runs-on: ubuntu-latest
env:
DATABASE_URL: sqlite://${{ github.workspace }}/examples/universe.db
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Formatting
run: cargo fmt --check
- name: Linting
run: cargo clippy -- -D warnings
- name: Build dev
run: cargo build
- name: Test dev
run: cargo test
- name: Build release
run: cargo build
- name: Test release
run: cargo test