-
-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (37 loc) · 955 Bytes
/
Copy pathintegration.yml
File metadata and controls
39 lines (37 loc) · 955 Bytes
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
name: Integration
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Test
strategy:
matrix:
mssql: [2017, 2019]
runs-on: ubuntu-latest
services:
mssql:
image: mcr.microsoft.com/mssql/server:${{ matrix.mssql }}-latest
ports:
- 1433:1433
env:
ACCEPT_EULA: Y
SA_PASSWORD: REL2021-mssql
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Check out code into the Go module directory
uses: actions/checkout@v5
- name: Run go test ./...
env:
MSSQL_DATABASE: sqlserver://sa:REL2021-mssql@localhost:1433
run: |
sleep 15
go test -race -tags=all -coverprofile=coverage.txt -covermode=atomic ./...
- name: Codecov
uses: codecov/codecov-action@v5
if: matrix.mssql == '2019'