-
-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (34 loc) · 1.1 KB
/
build.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
name: Build and test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
strategy:
matrix:
go: [ '1.17', '1.16', '1.15' ]
name: Go ${{ matrix.go }}
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Run staticcheck (only latest go version)
if: matrix.go == '1.17'
run: ./staticcheck.sh
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Start docker-compose services
run: docker-compose -f test/docker-compose-it.yaml up -d
- name: Build and test migrator
env:
AZURE_STORAGE_ACCESS_KEY: ${{ secrets.AZURE_STORAGE_ACCESS_KEY }}
AZURE_STORAGE_ACCOUNT: ${{ secrets.AZURE_STORAGE_ACCOUNT }}
run: ./coverage.sh
- name: Run HTTP integration tests
run: ./test/http-integration-tests.sh
- uses: codecov/codecov-action@v3.1.3