Files
services/.github/workflows/integration.yml
Asim Aslam cecabe336f Cleanup (#102)
* cleanup

* cleanup go mod

* Remove doc generation

* add no integration test

* fix broken test

* rename workflow
2021-05-17 13:01:13 +01:00

57 lines
1.4 KiB
YAML

name: Integration tests
on: [push]
jobs:
test:
name: Integration tests
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v2
with:
go-version: 1.13
id: go
- name: Install Protoc
uses: arduino/setup-protoc@master
- name: Check out this code
uses: actions/checkout@v2
with:
path: services
- name: Check out micro code
uses: actions/checkout@v2
with:
repository: 'micro/micro'
path: 'micro'
ref: 'v3.0.0-beta.7'
- name: Enable caching
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install micro
working-directory: micro
run: |
go run . init --profile=ci --output=profile.go
go mod edit -replace github.com/micro/micro/plugin/etcd/v3=./plugin/etcd
go mod edit -replace github.com/micro/micro/profile/ci/v3=./profile/ci
go mod edit -replace google.golang.org/grpc=google.golang.org/grpc@v1.26.0
go install
- name: Build container
run: |
bash services/test/image/test-docker.sh
- name: Test Services
working-directory: services/test/integration
run: |
go clean -testcache && GOMAXPROCS=4 go test -timeout 15m --tags=integration -v ./...