mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
Blog changes + tests (#4)
* Blog changes + tests * Fix build * Fix * Add back step * Fix logger * Fix test * Typo * Better test * Changes to tests * Update micro * Fixing all them things * Fixing even more things :)) * Bump micro * Fix posts and tags by following micro changes * Trying to pin workflow to correct micro version * huh * Bump go micro * Add etcd replace * Changing a bunch of things * Denormalize to fix bug * Fixes
This commit is contained in:
56
.github/workflows/integration-blog.yml
vendored
Normal file
56
.github/workflows/integration-blog.yml
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
name: Blog integration tests
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
|
||||
test:
|
||||
name: Blog 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: '20cabee1960e6abe8b59d8f178ddf66ad5da1097'
|
||||
|
||||
- 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/tests/image/test-docker.sh
|
||||
|
||||
- name: Test Blog services
|
||||
working-directory: services/tests
|
||||
run: |
|
||||
go clean -testcache && GOMAXPROCS=4 go test -timeout 15m --tags=blog -v ./...
|
||||
|
||||
Reference in New Issue
Block a user