|
|
@ -6,17 +6,25 @@ on: |
|
|
|
pull_request: |
|
|
|
pull_request: |
|
|
|
branches: [ master ] |
|
|
|
branches: [ master ] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
jobs: |
|
|
|
|
|
|
|
|
|
|
|
build: |
|
|
|
build: |
|
|
|
name: Build |
|
|
|
name: Build on ${{ matrix.os }} - Go${{ matrix.go_version }} |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ${{ matrix.os }} |
|
|
|
|
|
|
|
strategy: |
|
|
|
|
|
|
|
matrix: |
|
|
|
|
|
|
|
go_version: |
|
|
|
|
|
|
|
- 1.13 |
|
|
|
|
|
|
|
os: |
|
|
|
|
|
|
|
- ubuntu-latest |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
steps: |
|
|
|
|
|
|
|
|
|
|
|
- name: Set up Go 1.13 |
|
|
|
- name: Set up Go ${{ matrix.go_version }} |
|
|
|
uses: actions/setup-go@v1 |
|
|
|
uses: actions/setup-go@v1 |
|
|
|
with: |
|
|
|
with: |
|
|
|
go-version: 1.13 |
|
|
|
go-version: ${{ matrix.go_version }} |
|
|
|
id: go |
|
|
|
id: go |
|
|
|
|
|
|
|
|
|
|
|
- name: Set up Env |
|
|
|
- name: Set up Env |
|
|
@ -66,6 +74,33 @@ jobs: |
|
|
|
- name: Coverage |
|
|
|
- name: Coverage |
|
|
|
run: bash <(curl -s https://codecov.io/bash) |
|
|
|
run: bash <(curl -s https://codecov.io/bash) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scaffold: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
name: Scaffold Test on ${{ matrix.os }} - Go${{ matrix.go_version }} |
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }} |
|
|
|
|
|
|
|
strategy: |
|
|
|
|
|
|
|
matrix: |
|
|
|
|
|
|
|
go_version: |
|
|
|
|
|
|
|
- 1.13 |
|
|
|
|
|
|
|
os: |
|
|
|
|
|
|
|
- ubuntu-latest |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set up Go ${{ matrix.go_version }} |
|
|
|
|
|
|
|
uses: actions/setup-go@v1 |
|
|
|
|
|
|
|
with: |
|
|
|
|
|
|
|
go-version: ${{ matrix.go_version }} |
|
|
|
|
|
|
|
id: go |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set up Env |
|
|
|
|
|
|
|
run: | |
|
|
|
|
|
|
|
echo "::set-env name=GOPATH::$(go env GOPATH)" |
|
|
|
|
|
|
|
echo "::add-path::$(go env GOPATH)/bin" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Check out code into the Go module directory |
|
|
|
|
|
|
|
uses: actions/checkout@v2 |
|
|
|
|
|
|
|
|
|
|
|
- name: Tool |
|
|
|
- name: Tool |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
go install ./... |
|
|
|
go install ./... |
|
|
|