| 1234567891011121314151617181920212223242526 |
- name: CI
- on:
- push:
- branches: [main]
- pull_request:
- branches: [main]
- jobs:
- test:
- strategy:
- matrix:
- os: [ubuntu-latest, macos-latest]
- runs-on: ${{ matrix.os }}
- steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-go@v5
- with:
- go-version: "1.25.x"
- cache: true
- - name: vet
- run: go vet ./...
- - name: test
- run: go test -race ./...
- - name: build
- run: go build -trimpath ./cmd/cc-switch
|