|
|
|
@ -6,17 +6,25 @@ on: |
|
|
|
|
pull_request: |
|
|
|
|
branches: [ master ] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
|
|
|
|
|
|
build: |
|
|
|
|
name: Build |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
name: Build 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 1.13 |
|
|
|
|
- name: Set up Go ${{ matrix.go_version }} |
|
|
|
|
uses: actions/setup-go@v1 |
|
|
|
|
with: |
|
|
|
|
go-version: 1.13 |
|
|
|
|
go-version: ${{ matrix.go_version }} |
|
|
|
|
id: go |
|
|
|
|
|
|
|
|
|
- name: Set up Env |
|
|
|
@ -66,6 +74,33 @@ jobs: |
|
|
|
|
- name: Coverage |
|
|
|
|
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 |
|
|
|
|
run: | |
|
|
|
|
go install ./... |
|
|
|
|