Skip to content

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

chore: update gha setup-go and checkout (#1799)

Yilong Li67eb77bd946f
diff --git a/.github/workflows/build-push-release-image.yml b/.github/workflows/build-push-release-image.yml
index f09cdde6a2..e8c4e59148 100644
--- a/.github/workflows/build-push-release-image.yml
+++ b/.github/workflows/build-push-release-image.yml
@@ -10,7 +10,7 @@ jobs:
build-release-image:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- name: Extract build args
# Extract version from branch name
# Example: branch name `release/1.0.0` sets up env.RELEASE_VERSION=1.0.0
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index a8fe351501..94ee7cd106 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -43,7 +43,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml
index 395858d3c1..6bce6fecb0 100644
--- a/.github/workflows/draft-release.yml
+++ b/.github/workflows/draft-release.yml
@@ -9,7 +9,7 @@ jobs:
release-binary:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- uses: pnpm/[email protected]
with:
version: 6.10.0
@@ -22,9 +22,11 @@ jobs:
working-directory: frontend
- run: pnpm release
working-directory: frontend
- - uses: actions/setup-go@v2
+ - uses: actions/setup-go@v3
with:
go-version: 1.16
+ check-latest: true
+ cache: true
- name: Release
uses: goreleaser/goreleaser-action@v2
with:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index c1c794c88e..cc898e5639 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -15,6 +15,8 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: 1.17
+ check-latest: true
+ cache: true
- name: go generate -tags mysql ./...
run: go generate -tags mysql ./...
- name: golangci-lint
@@ -26,10 +28,12 @@ jobs:
go-tidy:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - uses: actions/setup-go@v2
+ - 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
@@ -39,7 +43,7 @@ jobs:
release-dry-run:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- uses: pnpm/[email protected]
with:
version: 6.10.0
@@ -52,9 +56,11 @@ jobs:
working-directory: frontend
- run: pnpm release
working-directory: frontend
- - uses: actions/setup-go@v2
+ - uses: actions/setup-go@v3
with:
go-version: 1.16
+ check-latest: true
+ cache: true
- name: Release dry-run
uses: goreleaser/goreleaser-action@v2
with:
@@ -72,14 +78,16 @@ jobs:
timeout-minutes: 15
steps:
- name: Checkout
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
fetch-depth: 0
- - uses: actions/setup-go@v2
+ - uses: actions/setup-go@v3
with:
go-version: 1.17
+ check-latest: true
+ cache: true
- name: Cache MySQL
- uses: actions/cache@v2
+ uses: actions/cache@v3
with:
path: |
./resources/mysql/*.tar.gz
diff --git a/.github/workflows/update-render-staging-service.yml b/.github/workflows/update-render-staging-service.yml
index d9dc962992..9c736484b4 100644
--- a/.github/workflows/update-render-staging-service.yml
+++ b/.github/workflows/update-render-staging-service.yml
@@ -11,7 +11,7 @@ jobs:
update-render:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- name: Extract version
run: |
echo "RELEASE_VERSION=${GITHUB_REF_NAME#release/}" >> $GITHUB_ENV