-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.11 KB
/
Copy pathtests.yml
File metadata and controls
40 lines (38 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Database contracts
on:
workflow_call:
permissions:
contents: read
jobs:
contracts:
name: ${{ matrix.backend }}
runs-on: ubuntu-22.04
timeout-minutes: 35
strategy:
fail-fast: false
matrix:
backend: [turso, postgres]
services:
postgres:
image: ${{ matrix.backend == 'postgres' && 'postgres:18-alpine@sha256:54451ecb8ab38c24c3ec123f2fd501303a3a1856a5c66e98cecf2460d5e1e9d7' || '' }}
env:
POSTGRES_PASSWORD: sqlrest
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 5s
--health-timeout 5s
--health-retries 20
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: ./.github/actions/setup-rust
with:
cache-key: tests
- name: Run database contracts
env:
SQLREST_TEST_POSTGRES: postgresql://postgres:sqlrest@127.0.0.1:5432/postgres
CHECK_GROUP: ${{ matrix.backend }}
run: just "$CHECK_GROUP"