Skip to content

ci: adapt workflows to run for syn/master branch #2

ci: adapt workflows to run for syn/master branch

ci: adapt workflows to run for syn/master branch #2

name: Integration tests - Docker
on:
workflow_dispatch:
push:
branches:
# - master
- 'syn/master'
pull_request:
# branches: [ master ]
jobs:
integration-tests-docker-raw:
name: Backup raw data
runs-on: ubuntu-latest
steps:
#- name: Install Latest Docker
# run: |
# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# sudo apt-get update
# sudo apt-get install docker-ce
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: ^1.20
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Build docker image
run: docker build --build-arg GO_VERSION=1.20 --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: Install Latest Docker
# run: |
# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# sudo apt-get update
# sudo apt-get install docker-ce
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: ^1.20
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Build docker image
run: docker build --build-arg GO_VERSION=1.20 --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: Install Latest Docker
# run: |
# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# sudo apt-get update
# sudo apt-get install docker-ce
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: ^1.20
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Build docker image
run: docker build --build-arg GO_VERSION=1.20 --build-arg GOOS=linux --build-arg GOARCH=amd64 -t bivac-testing .
- name: Run PostgreSQL test case
run: ./tests/postgres
working-directory: ./test/integration/docker/