Chris Lu
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
3 deletions
-
.github/workflows/go.yml
|
|
@ -17,20 +17,21 @@ jobs: |
|
|
|
uses: actions/setup-go@v2 |
|
|
|
with: |
|
|
|
go-version: ^1.13 |
|
|
|
id: go |
|
|
|
|
|
|
|
- name: Check out code into the Go module directory |
|
|
|
uses: actions/checkout@v2 |
|
|
|
|
|
|
|
- name: Get dependencies |
|
|
|
run: | |
|
|
|
go get -v -t -d ./... |
|
|
|
cd weed; go get -v -t -d ./... |
|
|
|
if [ -f Gopkg.toml ]; then |
|
|
|
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh |
|
|
|
dep ensure |
|
|
|
fi |
|
|
|
|
|
|
|
- name: Build |
|
|
|
run: go build -v . |
|
|
|
run: cd weed; go build -v . |
|
|
|
|
|
|
|
- name: Test |
|
|
|
run: go test -v . |
|
|
|
run: cd weed; go test -v ./... |