name: CI on: push: pull_request: jobs: build: runs-on: docker container: image: golang:1.26 steps: - name: Checkout env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | command -v git >/dev/null || (apt-get update -qq && apt-get install -y -qq git) git clone --depth 1 --branch "$GITHUB_REF_NAME" "https://x-access-token:${GITHUB_TOKEN}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" . - run: go build ./... - run: go vet ./...