github.com/gogo/protobuf@v1.3.2/.github/workflows/ci-workflow.yml (about)

     1  name: Continuous Integration
     2  on:
     3    push:
     4      branches:
     5        - ghworkflow
     6    pull_request:
     7      branches:
     8        - master
     9  
    10  jobs:
    11    build_and_test:
    12      name: go ${{ matrix.go_version }} - pb-${{ matrix.protobuf_version }}
    13      runs-on: ubuntu-latest
    14      strategy:
    15        matrix:
    16          go_version: [1.15.x, 1.12.x]
    17          protobuf_version: [3.14.0, 3.0.2, 2.6.1]
    18        fail-fast: false
    19      steps:
    20        - name: Checkout branch
    21          uses: actions/checkout@v1
    22          with:
    23            path: gopath/src/github.com/gogo/protobuf
    24            fetch-depth: 5
    25  
    26        - name: Setup go
    27          uses: actions/setup-go@v1
    28          with:
    29            go-version: ${{ matrix.go_version }}
    30  
    31        - name: Setup protoc
    32          env:
    33            PROTOBUF_VERSION: ${{ matrix.protobuf_version }}
    34          run: ./install-protobuf.sh
    35  
    36        - name: Protoc version
    37          run: PATH=$HOME/bin:$PATH protoc --version
    38        - name: env
    39          run: env && go env && pwd
    40  
    41        - name: Build server all
    42          run: GOPATH=/home/runner/work/protobuf/gopath GOBIN=$GOPATH/bin PATH=$HOME/bin:$GOBIN:$PATH make buildserverall
    43  
    44        - name: Diff check
    45          if: matrix.protobuf_version == '3.14.0' && matrix.go_version == '1.15.x'
    46          run: (! git status --porcelain | read || (git status; git diff; exit 1))