Skip to content

DELETEME: Run on branch actions #9

DELETEME: Run on branch actions

DELETEME: Run on branch actions #9

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "master", "actions" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.work
- run: go version
- name: Build
run: make build
- name: Test
run: make test
- name: Generate
run: make gen git/diff
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: ./... ./internal/cmd/generate/...
- run: go install github.com/google/addlicense@latest
- name: License
run: make lint/license
- name: go.mod
run: make fix/mod git/diff