From 1b21c2ae0d6b20dab81f73c6f0a7c36ebb4d5b90 Mon Sep 17 00:00:00 2001 From: Xavier Goffin Date: Mon, 13 Jan 2025 15:42:37 +0100 Subject: [PATCH 1/3] .github/workflows/*.yml: update action versions --- .github/workflows/ci.yml | 6 +++--- .github/workflows/lint.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a23ea7..6fb052a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,13 +30,13 @@ jobs: steps: - name: Install Go ${{ matrix.go }} - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Cache Modules - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-v1-${{ hashFiles('**/go.sum') }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 06d0198..fee8b72 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,11 +8,11 @@ jobs: timeout-minutes: 30 steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: 1.18.x + go-version: 1.21.x - name: Check out code - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: golanci-lint uses: upfluence/action-golangci-lint@master with: From 4d8235290274441c58da425419283982eb527d9d Mon Sep 17 00:00:00 2001 From: Xavier Goffin Date: Mon, 13 Jan 2025 15:46:22 +0100 Subject: [PATCH 2/3] .github/workflows/ci.yml: add auto-release --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6fb052a..c6e5319 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,3 +46,9 @@ jobs: run: go test -p 1 -v ./... env: POSTGRES_URL: postgres://postgres:postgres@localhost:5432/tata_test?sslmode=disable + + release: + needs: test + if: github.ref == 'refs/heads/master' + uses: upfluence/actions/.github/workflows/lib-any-release.yml@master + secrets: inherit From 0fde9dc0746341c8dcdca836bf2bd881d8b19e15 Mon Sep 17 00:00:00 2001 From: Xavier Goffin Date: Tue, 14 Jan 2025 13:58:48 +0100 Subject: [PATCH 3/3] .github/workflows/ci.yml: no cache on setup go --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6e5319..ce50f9f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,7 @@ jobs: uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} + cache: false - name: Checkout uses: actions/checkout@v4 - name: Cache Modules