Skip to content

Commit

Permalink
Merge branch 'master' into postgres-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 authored Oct 3, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 684367e + ae2fd5a commit b25545a
Showing 4 changed files with 8 additions and 17 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/gha-go-test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Go tests
run-name: Running tests

on: [push]

jobs:
test:
runs-on: ubuntu-latest
@@ -10,19 +11,18 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Install dependencies
run: go mod download
- name: Run vet
run: make vet
- name: Run staticcheck
env:
SC_VERSION: "2024.1"
SC_VERSION: "2024.1.1"
run: |
make generate
SC_URL="https://github.com/dominikh/go-tools/releases/download/$SC_VERSION/staticcheck_linux_amd64.tar.gz"
wget -q ${SC_URL} -O - | tar -xzf - --strip-components 1 -C /usr/local/bin staticcheck/staticcheck
make static
- name: Run tests
run: make test
- name: Run race condition check
- name: Run tests + race condition check
run: make race
- name: Check Go files are properly formatted
run: test -z $(gofmt -l .)
3 changes: 2 additions & 1 deletion .github/workflows/gha-integration-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Integration tests
run-name: Running integration tests

on: [push]

jobs:
Postgres:
runs-on: ubuntu-latest
6 changes: 0 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -38,12 +38,6 @@ release:
clean:
go clean -testcache

.PHONY: generate
generate:
go get github.com/maxbrunsfeld/counterfeiter/v6
go generate ./...
go mod tidy

.PHONY: upgrade
upgrade:
go get github.com/artie-labs/transfer
4 changes: 0 additions & 4 deletions lib/mocks/generate.go

This file was deleted.

0 comments on commit b25545a

Please sign in to comment.