Skip to content

Merge pull request #708 from cloudflare/dependabot/go_modules/github.… #1694

Merge pull request #708 from cloudflare/dependabot/go_modules/github.…

Merge pull request #708 from cloudflare/dependabot/go_modules/github.… #1694

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21.0
cache: true
cache-dependency-path: tools/golangci-lint/go.sum
- name: Lint code
run: make lint
format:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21.0
cache: true
cache-dependency-path: tools/gofumpt/go.sum
- name: Format code
run: make format
- name: Check for local changes
run: git diff --exit-code