-
Notifications
You must be signed in to change notification settings - Fork 73
35 lines (35 loc) · 1.15 KB
/
ci-execute-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
name: Delta Execute Integration Tests
on:
pull_request:
paths:
- 'delta/**'
- 'storage/**'
- 'tests/**'
- 'build.sbt'
- 'project/**'
- '.github/workflows/ci-execute-integration-tests.yml'
jobs:
tests:
runs-on: it
timeout-minutes: 40
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Clean, build Delta & Storage images
run: sbt -Dsbt.color=always -Dsbt.supershell=false "clean; app/Docker/publishLocal; storage/Docker/publishLocal"
- name: Start services
run: docker-compose -f tests/docker/docker-compose-ci.yml up -d && sleep 60
- name: Test
run: sbt -Dsbt.color=always -Dsbt.supershell=false "project tests" test
- name: Stop Docker
if: ${{ always() }}
run: docker-compose -f tests/docker/docker-compose-ci.yml down
- name: Cleanup Docker Containers
if: ${{ always() }}
run: |
for container in `docker images | grep none | awk '{print $3}'`; do
echo "Deleting container: $container";
docker rmi $container;
done