File tree Expand file tree Collapse file tree 3 files changed +66
-24
lines changed
Expand file tree Collapse file tree 3 files changed +66
-24
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Unit Tests
2+ on : [push,pull_request]
3+
4+ jobs :
5+ test :
6+ runs-on : ${{ matrix.os }}
7+ strategy :
8+ fail-fast : false
9+ matrix :
10+ go : [1.12, 1.13]
11+ os : [ubuntu-latest, macos-latest, windows-latest]
12+ make_target : [test, vet]
13+
14+ steps :
15+ - name : Set up Go
16+ uses : actions/setup-go@v1
17+ with :
18+ go-version : ${{ matrix.go }}
19+ id : go
20+
21+ - name : Check out code repository source code
22+ uses : actions/checkout@v2
23+
24+ # https://help.github.com/en/actions/reference/workflow-commands-for-github-actions
25+ - name : Set build variables
26+ run : |
27+ echo "::set-env name=MAKE_TARGET::${{ matrix.make_target }}"
28+ echo "::set-env name=GO_FLAGS::-mod=vendor"
29+ echo "::set-env name=GO111MODULE::on"
30+
31+ - name : Run ${{matrix.make_target}}
32+ run : |
33+ make $MAKE_TARGET
Original file line number Diff line number Diff line change 1+ name : Website Build
2+ on : [push,pull_request]
3+
4+ jobs :
5+ test :
6+ runs-on : ubuntu-latest
7+
8+ steps :
9+ - name : Set up Go
10+ uses : actions/setup-go@v1
11+ with :
12+ go-version : 1.12
13+ id : go
14+
15+ # https://help.github.com/en/actions/reference/workflow-commands-for-github-actions
16+ - name : Set Go variables for backwards compatibility
17+ run : |
18+ echo "::set-env name=GOPATH::$GITHUB_WORKSPACE/go"
19+ echo "::set-env name=GOBIN::$GITHUB_WORKSPACE/go/bin"
20+ echo "::add-path::$GITHUB_WORKSPACE/go/bin"
21+
22+ - name : Check out code repository source code
23+ uses : actions/checkout@v2
24+ with :
25+ path : go/src/github.com/${{ github.repository }}
26+
27+ - name : Run website-test
28+ run : |
29+ cd $GOPATH/src/github.com/${{ github.repository }}
30+ export MAKE_TARGET=${{ matrix.make_target }}
31+ export GOFLAGS=-mod=vendor
32+ export GO111MODULE=on
33+ make website-test
You can’t perform that action at this time.
0 commit comments