tests.yml 522 B

123456789101112131415161718192021222324252627282930313233
  1. name: Run Tests
  2. on:
  3. pull_request:
  4. branches:
  5. - main
  6. push:
  7. branches:
  8. - main
  9. concurrency:
  10. group: test-amd64-${{ github.head_ref || github.run_id }}
  11. cancel-in-progress: true
  12. jobs:
  13. test:
  14. runs-on: ubuntu-latest
  15. steps:
  16. - uses: actions/checkout@v2
  17. - name: Set up Golang 1.20
  18. uses: actions/setup-go@v5
  19. with:
  20. go-version: '1.20'
  21. - name: Install dependencies
  22. run: go mod download
  23. - name: Run tests
  24. run: go test -v ./...