Skip to content

Only run CI on pushes to main branch #610

Only run CI on pushes to main branch

Only run CI on pushes to main branch #610

Workflow file for this run

---
on:
pull_request: {}
push:
branches:
- "main"
tags:
- "v*"
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
cache: true
check-latest: true
- run: "go build ./..."
lint:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
check-latest: true
- uses: "golangci/[email protected]"
with:
skip-pkg-cache: true