Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: merge gha static checks CI (#1800)

Yilong Li55292a86f580
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index cc898e5639..3a67dde394 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -8,7 +8,7 @@ on:
pull_request:
jobs:
- golangci:
+ go-static-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@@ -17,6 +17,10 @@ jobs:
go-version: 1.17
check-latest: true
cache: true
+ - name: Verify go.mod is tidy
+ run: |
+ go mod tidy
+ git diff --exit-code
- name: go generate -tags mysql ./...
run: go generate -tags mysql ./...
- name: golangci-lint
@@ -25,20 +29,6 @@ jobs:
version: v1.45.2
args: -v
- go-tidy:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- - uses: actions/setup-go@v3
- with:
- go-version: 1.17
- check-latest: true
- cache: true
- - name: Verify go.mod is tidy
- run: |
- go mod tidy
- git diff --exit-code
-
# Copied from draft-release.yml, should be consistent if updating draft-release.yml.
release-dry-run:
runs-on: ubuntu-latest