-
Notifications
You must be signed in to change notification settings - Fork 208
43 lines (43 loc) · 1.6 KB
/
go.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
name: Test
on:
push:
branches: # Array of patterns that match refs/heads
- master # Push events on master branch
- releases/* # Push events to branches matching refs/heads/releases/*
pull_request: # Specify a second event with pattern matching
jobs:
test:
name: Test go - ${{ matrix.go_version }} mysql - ${{ matrix.db_versions.mysql_version}} postgres - ${{ matrix.db_versions.postgres_version}} sqlserver- ${{ matrix.db_versions.sqlserver_version}}
runs-on: ubuntu-latest
strategy:
matrix:
go_version: ["1.15", "1.16", "latest"]
db_versions:
- mysql_version: 5
postgres_version: 9.6
sqlserver_version: "2017-CU8-ubuntu"
- mysql_version: 5
postgres_version: "10.10"
sqlserver_version: "2017-CU8-ubuntu"
- mysql_version: 8
postgres_version: 11.5
sqlserver_version: "2017-CU8-ubuntu"
env:
GO_VERSION: ${{ matrix.go_version }}
MYSQL_VERSION: ${{ matrix.db_versions.mysql_version }}
POSTGRES_VERSION: ${{ matrix.db_versions.postgres_version }}
SQLSERVER_VERSION: ${{ matrix.db_versions.sqlserver_version }}
steps:
- name: checkout
uses: actions/checkout@v2
- name: Test
run: docker-compose run goqu-coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
env_vars: OS,MYSQL_VERSION,POSTGRES_VERSION,SQLSERVER_VERSION
name: codecov-umbrella
fail_ci_if_error: true
verbose: true