name: CI on: push: branches: [main] pull_request: permissions: contents: read jobs: test: strategy: fail-fast: false matrix: os: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: go-version: '1.26.x' cache: true - run: go test ./... - run: go test -race ./... - run: go vet ./... - run: go build -trimpath ./cmd/domainops release-config: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser version: '~> v2' args: check cross-build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: go-version: '1.26.x' cache: true - name: Build supported targets shell: bash run: | for os in linux darwin; do for arch in amd64 arm64; do CGO_ENABLED=0 GOOS="$os" GOARCH="$arch" go build -trimpath -o "build/domainops-$os-$arch" ./cmd/domainops done done