forked from micro/services
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
58 changed files
with
868 additions
and
1,171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/[email protected] | ||
go install | ||
- name: Build container | ||
run: | | ||
bash services/test/image/test-docker.sh | ||
- name: Test Blog services | ||
working-directory: services/test/integration | ||
run: | | ||
go clean -testcache && GOMAXPROCS=4 go test -timeout 15m --tags=blog -v ./... | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.