forked from haproxytech/client-native
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1016 Bytes
/
Copy pathtest.yml
File metadata and controls
41 lines (37 loc) · 1016 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
40
41
name: go test
on: [push, pull_request]
jobs:
e2e:
name: e2e on HAProxy
runs-on: ubuntu-latest
strategy:
matrix:
haproxyVersion: [2.1, 2.2, 2.3]
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Build
uses: docker/build-push-action@v2
with:
file: ./e2e/Dockerfile
build-args: |
HAPROXY_VERSION=${{ matrix.haproxyVersion }}
tags: client-native-test:${{ matrix.haproxyVersion }}
- uses: addnab/docker-run-action@v2
with:
image: client-native-test:${{ matrix.haproxyVersion }}
run: go test -tags integration ./...
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.16
uses: actions/setup-go@v2
with:
go-version: 1.16
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Test
run: |
go test -v ./...