Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,23 @@ env:
XPKG_VERSION: ${{ inputs.version }}

jobs:
check-dirty:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

- name: Run go generate
run: make generate

- name: Check dirty files from go generate
run: make ci-check-dirty

lint:
runs-on: ubuntu-24.04
steps:
Expand Down Expand Up @@ -144,6 +161,7 @@ jobs:
push:
runs-on: ubuntu-24.04
needs:
- check-dirty
- lint
- unit-test
- build
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ local: build test lint
mkdir -p ./.bin
GOBIN="$$(pwd)/.bin" go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.63.2

.PHONY: build
build:
.PHONY: generate
generate:
CGO_ENABLED=0 go generate ./...

.PHONY: build
build: generate
CGO_ENABLED=0 go install -ldflags="$(ldflags)" ./...

.PHONY: test
Expand Down