Skip to content

fix(CI): explicitly set db url #678

fix(CI): explicitly set db url

fix(CI): explicitly set db url #678

Workflow file for this run

---
name: CI
on:
workflow_call:
pull_request:
push:
branches:
- main
env:
DATABASE_URL: sqlite:data/spis.db
jobs:
ci:
name: Run ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: ["lint:fmt", "lint:clippy", "test"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install rust toolchain
uses: ./.github/actions/toolchain
- name: Run ${{ matrix.target }}
run: mise run ${{ matrix.target }}
- name: Upload test coverage
uses: codecov/codecov-action@v4
if: matrix.target == 'test'
continue-on-error: true
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true