2020-06-04 15:46:22 +03:00
|
|
|
name: Build and test micro
|
|
|
|
on:
|
2020-06-19 19:19:58 +03:00
|
|
|
pull_request:
|
2020-06-04 15:46:22 +03:00
|
|
|
branches:
|
2020-06-19 19:19:58 +03:00
|
|
|
- master
|
2020-06-04 15:46:22 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
name: Build and test micro
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Set up Go 1.13
|
2020-06-19 19:19:58 +03:00
|
|
|
uses: actions/setup-go@v2
|
2020-06-04 15:46:22 +03:00
|
|
|
with:
|
|
|
|
go-version: 1.13
|
|
|
|
id: go
|
2020-06-24 18:27:22 +03:00
|
|
|
|
|
|
|
- name: Install Protoc
|
|
|
|
uses: arduino/setup-protoc@master
|
2020-06-04 15:46:22 +03:00
|
|
|
|
|
|
|
- name: Check out this code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
path: 'go-micro'
|
|
|
|
|
|
|
|
- name: Check out micro
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
repository: 'micro/micro'
|
|
|
|
path: 'micro'
|
|
|
|
|
|
|
|
- name: Build all
|
2020-06-25 01:41:27 +03:00
|
|
|
run: $GITHUB_WORKSPACE/go-micro/.github/workflows/scripts/build-micro.sh ${{ github.event.pull_request.head.sha }} ${{ github.event.pull_request.head.repo.full_name }}
|
2020-06-04 15:46:22 +03:00
|
|
|
working-directory: micro
|
|
|
|
|