go.yml 550 B

1234567891011121314151617181920212223242526272829
  1. # This workflow will build a golang project
  2. # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
  3. name: Go
  4. on:
  5. push:
  6. branches: [ "main" ]
  7. pull_request:
  8. branches: [ "main" ]
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v3
  14. - name: Set up Go
  15. uses: actions/setup-go@v3
  16. with:
  17. go-version-file: 'go.mod'
  18. cache: true
  19. - name: Build
  20. run: go build -v ./...
  21. - name: Test
  22. run: go test -v ./...