-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a152ac5
commit a3474bd
Showing
4 changed files
with
42 additions
and
27 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,40 @@ | ||
on: [push, pull_request] | ||
name: GoBeansProxy Test | ||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
go-version: [1.12.x, 1.13.x] | ||
python-version: [2.x] | ||
platform: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
|
||
- name: Get test tools | ||
run: go get -u -v golang.org/x/tools/cmd/goimports | ||
|
||
- name: Prepare Test | ||
run: pip install --user -r tests/pip-req.txt | ||
|
||
- name: Test | ||
run: | | ||
export PATH=${PATH}:`go env GOPATH`/bin | ||
diff <(goimports -d .) <(printf "") | ||
go mod vendor | ||
go get -u -v github.com/douban/gobeansdb | ||
make test | ||
- name: Install | ||
run: make install |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,5 +17,4 @@ pytest:install | |
./tests/run_test.sh | ||
|
||
install: | ||
GO111MODULE=on go mod vendor | ||
go install ./ |
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