2020-06-04 11:32:17 +03:00
|
|
|
name: Build all github.com/micro/examples
|
|
|
|
on:
|
2020-06-19 19:19:58 +03:00
|
|
|
pull_request:
|
2020-06-04 11:32:17 +03:00
|
|
|
branches:
|
2020-06-19 19:19:58 +03:00
|
|
|
- master
|
2020-06-04 11:32:17 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
name: Build repos
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Set up Go 1.13
|
|
|
|
uses: actions/setup-go@v1
|
|
|
|
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 11:32:17 +03:00
|
|
|
|
|
|
|
- name: Check out this code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
path: 'go-micro'
|
|
|
|
|
|
|
|
- name: Check out code examples
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
repository: 'micro/examples'
|
|
|
|
path: 'examples'
|
|
|
|
|
|
|
|
- name: Build all
|
2020-06-19 19:19:58 +03:00
|
|
|
run: $GITHUB_WORKSPACE/go-micro/.github/workflows/scripts/build-all-examples.sh ${{ github.event.pull_request.head.sha }}
|
2020-06-04 11:32:17 +03:00
|
|
|
working-directory: examples
|
|
|
|
|