go.yml 474 B

1234567891011121314151617181920212223242526272829
  1. name: go
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. branches: [ master ]
  7. jobs:
  8. test:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: szenius/set-timezone@v1.0
  12. with:
  13. timezoneLinux: "Asia/Shanghai"
  14. - uses: actions/checkout@v2
  15. - name: Set up Go
  16. uses: actions/setup-go@v2
  17. with:
  18. go-version: 1.19
  19. - name: Build
  20. run: go build -v ./...
  21. - name: Test
  22. run: go test -v ./...