Skip to content

Commit

Permalink
tests: gorelease (#42)
Browse files Browse the repository at this point in the history
Closes #40
  • Loading branch information
murfffi authored Jan 24, 2025
1 parent d042fbc commit 32851e8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
- name: Test
run: make test

- name: Checks
run: |
make check_changes
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
go-version: '1.23'
- name: golangci-lint
uses: golangci/golangci-lint-action@v6.2.0
with:
Expand Down
1 change: 1 addition & 0 deletions .next.version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v0.2.1
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ usql:
test-cli: usql
./usql -c "\drivers" | grep impala

PKGS=$(shell exec go list ./... | grep -v "./internal/generated")
PKGS=$(shell go list ./... | grep -v "./internal/generated")
PKGS_LST=$(shell echo ${PKGS} | tr ' ' ',')
test:
mkdir -p coverage/covdata
Expand All @@ -26,3 +26,8 @@ test:
# Convert to old text format for coveralls upload
go tool covdata textfmt -i=./coverage/covdata -o ./coverage/covprofile
go tool cover -html=./coverage/covprofile -o ./coverage/coverage.html

check_changes:
# make sure .next.version contains the intended next version
# if the following fails, update either the next version or undo any unintended api changes
go run golang.org/x/exp/cmd/gorelease@latest -version $(shell cat .next.version)

0 comments on commit 32851e8

Please sign in to comment.