# Go Build & Release CI name: Go Build & Release CI # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the master branch on: push: branches: - main pull_request: branches: - main jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 0 - run: git fetch --force --tags - name: Set up Go uses: actions/setup-go@v4 with: go-version: "1.20.x" cache: true - name: Build run: go build -v ./...