-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (43 loc) · 1.09 KB
/
ci-master.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
45
46
name: "Continuous Integration - Master/Release"
on:
push:
branches:
- master
- release/*
paths:
- "cmd/**"
- "internal/**"
- "pb/**"
- "deployments/**"
pull_request:
branches:
- master
paths:
- "cmd/**"
- "internal/**"
- "pb/**"
- "deployments/**"
workflow_dispatch: # Run workflow manually (without waiting for the cron to be called), through the Github Actions Workflow page directly
jobs:
test:
strategy:
matrix:
go-version: [1.14.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Run tests
run: go test -v -race -cover -coverprofile unit_cover.out ./...
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the stack
run: docker-compose -f docker-compose.test.yaml up --abort-on-container-exit