Skip to content

Commit

Permalink
ci: fix check pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Braun <rainbowstack@gmail.com>
  • Loading branch information
bluebrown committed Jan 24, 2024
1 parent e3c9b74 commit a6c6c67
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
7 changes: 0 additions & 7 deletions .github/diff.sh

This file was deleted.

8 changes: 1 addition & 7 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,4 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: '1.21.5'
- run: make .local/bin/sqlc .local/bin/swag
- run: bash .github/diff.sh
- uses: golangci/golangci-lint-action@v3
with:
version: latest
only-new-issues: true
install-mode: binary
- run: make check
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ prefix := $(CURDIR)/.local
export GOBIN := $(prefix)/bin
export PATH := $(GOBIN):$(PATH)

check: lint test

test:
go test -cover ./...

Expand All @@ -20,6 +18,12 @@ generate: $(prefix)/bin/sqlc $(prefix)/bin/swag
artifacts:
bash build/artifacts.sh

diff: generate
git diff --exit-code

check: diff
$(MAKE) lint test

testinfra: $(prefix)/bin/skaffold
bash -x e2e/kind/up.sh
skaffold run -f e2e/skaffold.yaml -p testinfra
Expand Down

0 comments on commit a6c6c67

Please sign in to comment.