You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
911 B

3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. name: "go: build binary"
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. branches: [ master ]
  7. concurrency:
  8. group: ${{ github.head_ref }}/go
  9. cancel-in-progress: true
  10. permissions:
  11. contents: read
  12. jobs:
  13. build:
  14. name: Build
  15. runs-on: ubuntu-latest
  16. steps:
  17. - name: Set up Go 1.x
  18. uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # v2
  19. with:
  20. go-version: ^1.13
  21. id: go
  22. - name: Check out code into the Go module directory
  23. uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
  24. - name: Get dependencies
  25. run: |
  26. cd weed; go get -v -t -d ./...
  27. if [ -f Gopkg.toml ]; then
  28. curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
  29. dep ensure
  30. fi
  31. - name: Build
  32. run: cd weed; go build -v .
  33. - name: Test
  34. run: cd weed; go test -v ./...