Skip to content

Commit 8ad7e1d

Browse files
committedJul 13, 2021
add GitHub Actions build to run tests
Signed-off-by: Mark Sagi-Kazar <[email protected]>
1 parent 920ef3e commit 8ad7e1d

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
 

‎.github/workflows/ci.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- master
8+
9+
jobs:
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
go: ["1.15", "1.16"]
16+
eureka: ["1.1.147", "1.3.1"]
17+
env:
18+
GOFLAGS: -mod=readonly
19+
20+
steps:
21+
- name: Set up Go
22+
uses: actions/setup-go@v2
23+
with:
24+
go-version: ${{ matrix.go }}
25+
26+
- name: Checkout code
27+
uses: actions/checkout@v2
28+
29+
- name: Launch Eureka
30+
env:
31+
EUREKA_VERSION: ${{ matrix.eureka }}
32+
run: |
33+
cp docker-compose.override.yml.dist docker-compose.override.yml
34+
docker-compose up -d
35+
echo "Waiting for Eureka to come up"
36+
sleep 120
37+
38+
- name: Run tests
39+
run: go test -v ./...

0 commit comments

Comments
 (0)
Please sign in to comment.