ci.yml 505 B

1234567891011121314151617181920212223242526
  1. name: CI
  2. on:
  3. push:
  4. branches: [main]
  5. pull_request:
  6. branches: [main]
  7. jobs:
  8. test:
  9. strategy:
  10. matrix:
  11. os: [ubuntu-latest, macos-latest]
  12. runs-on: ${{ matrix.os }}
  13. steps:
  14. - uses: actions/checkout@v4
  15. - uses: actions/setup-go@v5
  16. with:
  17. go-version: "1.25.x"
  18. cache: true
  19. - name: vet
  20. run: go vet ./...
  21. - name: test
  22. run: go test -race ./...
  23. - name: build
  24. run: go build -trimpath ./cmd/cc-switch