-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add github action * master branch * maybe fix * switch go version * go.sum * code-gen script * make the tests work without GOPATH
- Loading branch information
Showing
10 changed files
with
231 additions
and
294 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,62 @@ | ||
name: pull_request | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
pull_request: { } | ||
|
||
jobs: | ||
check-code-gen: | ||
name: check-code-gen | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
git fetch --prune --unshallow | ||
- name: Set up Go 1.16 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.16.3 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Install Protoc | ||
uses: solo-io/setup-protoc@master | ||
with: | ||
version: '3.6.1' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Check code gen | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
run: | | ||
./ci/check-code-gen.sh | ||
unit-tests: | ||
name: unit-tests | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
git fetch --prune --unshallow | ||
- name: Set up Go 1.16 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.16.3 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Install Protoc | ||
uses: solo-io/setup-protoc@master | ||
with: | ||
version: '3.6.1' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Unit Tests | ||
run: | | ||
make update-deps run-tests |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
module github.com/solo-io/anyvendor | ||
|
||
go 1.13 | ||
go 1.16 | ||
|
||
require ( | ||
github.com/envoyproxy/protoc-gen-validate v0.4.1 | ||
github.com/golang/mock v1.4.4 | ||
github.com/golang/protobuf v1.4.3 | ||
github.com/envoyproxy/protoc-gen-validate v0.6.1 | ||
github.com/golang/mock v1.6.0 | ||
github.com/golang/protobuf v1.5.2 | ||
github.com/iancoleman/strcase v0.1.3 // indirect | ||
github.com/lyft/protoc-gen-star v0.5.2 // indirect | ||
github.com/lyft/protoc-gen-star v0.5.3 // indirect | ||
github.com/mattn/go-zglob v0.0.3 | ||
github.com/onsi/ginkgo v1.11.0 | ||
github.com/onsi/gomega v1.8.1 | ||
github.com/rotisserie/eris v0.1.1 | ||
github.com/spf13/afero v1.5.1 | ||
golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5 // indirect | ||
golang.org/x/mod v0.4.1 // indirect | ||
golang.org/x/net v0.0.0-20210119194325-5f4716e94777 // indirect | ||
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c // indirect | ||
golang.org/x/text v0.3.5 // indirect | ||
golang.org/x/tools v0.1.0 // indirect | ||
github.com/spf13/afero v1.6.0 | ||
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect | ||
golang.org/x/net v0.0.0-20210614182718-04defd469f4e // indirect | ||
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect | ||
golang.org/x/tools v0.1.4 // indirect | ||
google.golang.org/protobuf v1.27.1 // indirect | ||
) |
Oops, something went wrong.