Skip to content

testing new db approach on CI #926

testing new db approach on CI

testing new db approach on CI #926

Workflow file for this run

name: Rust
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
SQLX_OFFLINE: true
MIN_PAYMENT_AMT: 100
INVOICE_EXPIRATION_WINDOW: 3600
DATABASE_URL: sqlite://./mostro.db
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Install Protoc
uses: arduino/setup-protoc@v3
- uses: actions/checkout@v3
- name: Install sqlx
run: cargo install sqlx-cli --version 0.6.2
- name: Init DB
run: sqlx database create
- name: Run migrations
run: sqlx migrate run
- name: Prepare offline file
run: cargo sqlx prepare
- name: Check offline file
run: cargo sqlx prepare --check
- name: Run tests
run: cargo test --verbose