-
Notifications
You must be signed in to change notification settings - Fork 810
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add test ci-workflow * ci-workflow. update install protobuf script to use HOME var as configure prefix * workflow config update * github/actions. add trigger for pull requests on master
- Loading branch information
Showing
3 changed files
with
49 additions
and
3 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,46 @@ | ||
name: Continuous Integration | ||
on: | ||
push: | ||
branches: | ||
- ghworkflow | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build_and_test: | ||
name: go ${{ matrix.go_version }} - pb-${{ matrix.protobuf_version }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go_version: [1.12.x, 1.11.x] | ||
protobuf_version: [3.7.1, 3.0.2, 2.6.1] | ||
fail-fast: false | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v1 | ||
with: | ||
path: gopath/src/github.com/gogo/protobuf | ||
fetch-depth: 5 | ||
|
||
- name: Setup go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: ${{ matrix.go_version }} | ||
|
||
- name: Setup protoc | ||
env: | ||
PROTOBUF_VERSION: ${{ matrix.protobuf_version }} | ||
run: ./install-protobuf.sh | ||
|
||
- name: Protoc version | ||
run: PATH=$HOME/bin:$PATH protoc --version | ||
- name: env | ||
run: env && go env && pwd | ||
|
||
- name: Build server all | ||
run: GOPATH=/home/runner/work/protobuf/gopath GOBIN=$GOPATH/bin PATH=$HOME/bin:$GOBIN:$PATH make buildserverall | ||
|
||
- name: Diff check | ||
if: matrix.protobuf_version == '3.7.1' && matrix.go_version == '1.12.x' | ||
run: (! git status --porcelain | read || (git status; git diff; exit 1)) |
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