-
Notifications
You must be signed in to change notification settings - Fork 74
47 lines (47 loc) · 1.43 KB
/
ci-integration-tests.yml
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
41
42
43
44
45
46
47
name: Delta Integration Tests
on:
pull_request:
paths:
- 'delta/**'
- 'tests/**'
- 'build.sbt'
- 'project/**'
- '.github/workflows/ci-integration-tests.yml'
jobs:
run:
runs-on: ubuntu-latest
timeout-minutes: 40
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'sbt'
check-latest: true
- name: Setup SBT
uses: sbt/setup-sbt@v1
- name: Clean, build Delta image
run: |
sbt -Dsbt.color=always -Dsbt.supershell=false \
clean \
app/Docker/publishLocal
- name: Start services
run: docker compose -f tests/docker/docker-compose.yml up -d
- name: Waiting for Delta to start
run: |
URL="http://localhost:8080/v1/version"
curl --connect-timeout 3 --max-time 5 --retry 30 --retry-all-errors --retry-delay 3 --retry-max-time 90 $URL
- name: Test
run: sbt -Dsbt.color=always -Dsbt.supershell=false "project tests" test
- name: Stop & clean Docker
if: ${{ always() }}
run: |
docker compose -f tests/docker/docker-compose.yml down --rmi "local" --volumes
docker system prune --force --volumes