-
-
Notifications
You must be signed in to change notification settings - Fork 56
30 lines (28 loc) · 1.12 KB
/
ci-postgres-client-tests.yaml
File metadata and controls
30 lines (28 loc) · 1.12 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
name: Test PostgreSQL Client integrations
on: [pull_request]
concurrency:
group: ci-postgres-client-tests-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
postgres_client_integrations_job:
runs-on: ubuntu-22.04
timeout-minutes: 45
name: Run tests
steps:
- name: Free disk space
run: |
NAME="DISK-CLEANUP"
echo "[${NAME}] Starting background cleanup..."
[ -d "$AGENT_TOOLSDIRECTORY" ] && sudo rm -rf "$AGENT_TOOLSDIRECTORY" &
[ -d /usr/share/dotnet ] && sudo rm -rf /usr/share/dotnet &
[ -d /usr/local/lib/android ] && sudo rm -rf /usr/local/lib/android &
[ -d /opt/ghc ] && sudo rm -rf /opt/ghc &
[ -d /usr/local/share/boost ] && sudo rm -rf /usr/local/share/boost &
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker
uses: docker/setup-docker-action@v4
- name: Build Docker image
run: docker build -t postgres-client-tests --file testing/PostgresDockerfile .
- name: Run tests
run: docker run --detach=false postgres-client-tests