-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create go.yml * use github actions for test (#35) * use github actions for test * use github actions for test
- Loading branch information
1 parent
8316e32
commit fe3e8da
Showing
4 changed files
with
36 additions
and
33 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,33 @@ | ||
on: [push, pull_request] | ||
name: GoBeansDB Test | ||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
compiler: [gcc] | ||
go-version: [1.12.x, 1.13.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: Checkout code | ||
uses: actions/checkout@v1 | ||
|
||
- name: Get test tools | ||
run: go get -u -v golang.org/x/tools/cmd/goimports | ||
|
||
- name: Test | ||
env: | ||
CC: ${{ matrix.compiler }} | ||
run: | | ||
export PATH=${PATH}:`go env GOPATH`/bin | ||
diff <(goimports -d .) <(printf "") | ||
go mod vendor | ||
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 |
---|---|---|
|
@@ -12,5 +12,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