-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 995 Bytes
/
compose-ci.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
name: docker compose tests
on:
# push:
# branches: [ master, main, development]
pull_request:
branches: [ master, main, development]
workflow_dispatch:
jobs:
test-all:
runs-on: ubuntu-latest
services:
dockerdind:
image: docker:20.10.7
options: --privileged
ports:
- 2375:2375
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and run tests
run: |
docker compose -f docker-compose.test.yml build
docker compose -f docker-compose.test.yml up --abort-on-container-exit
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
files: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
- name: Remove Docker containers
if: always()
run: docker compose -f docker-compose.test.yml down