Skip to content

feat: Add migration 11 locked job error #415

feat: Add migration 11 locked job error

feat: Add migration 11 locked job error #415

Workflow file for this run

name: Test
permissions: "write-all"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
timeout-minutes: 20
runs-on: ubuntu-22.04
services:
postgres:
# Minimum is 13
image: postgres:16
env:
POSTGRES_USER: testuser
POSTGRES_PASSWORD: testpassword
POSTGRES_DB: testdb
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
with:
key: v1 # increment this to bust the cache if needed
- name: Rustfmt
run: cargo fmt --all -- --check
- name: Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Test
run: cargo test --all
env:
DATABASE_URL: postgres://testuser:testpassword@localhost:5432/testdb