forked from camptocamp/bivac
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (53 loc) · 1.83 KB
/
integration-tests-docker.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Integration tests - Docker
on:
workflow_dispatch: {}
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
integration-tests-docker-raw:
name: Backup raw data
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.14
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Build docker image
run: docker build --build-arg GO_VERSION=1.14 --build-arg GOOS=linux --build-arg GOARCH=amd64 -t bivac-testing .
- name: Run raw data test case
run: ./tests/raw
working-directory: ./test/integration/docker/
integration-tests-docker-mysql:
name: Backup MySQL database
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.14
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Build docker image
run: docker build --build-arg GO_VERSION=1.14 --build-arg GOOS=linux --build-arg GOARCH=amd64 -t bivac-testing .
- name: Run MySQL test case
run: ./tests/mysql
working-directory: ./test/integration/docker/
integration-tests-docker-postgres:
name: Backup PostgreSQL database
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.14
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Build docker image
run: docker build --build-arg GO_VERSION=1.14 --build-arg GOOS=linux --build-arg GOARCH=amd64 -t bivac-testing .
- name: Run PostgreSQL test case
run: ./tests/postgres
working-directory: ./test/integration/docker/