From 587d168d5611b81df030df9b81dcf507d132758d Mon Sep 17 00:00:00 2001 From: Xavier Goffin Date: Mon, 13 Jan 2025 15:52:52 +0100 Subject: [PATCH 1/2] .github/workflows/*.yml: update action versions; add auto-release --- .github/workflows/ci.yml | 12 +++++++++--- .github/workflows/lint.yml | 6 +++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f32f820..cd68f5a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,13 +17,13 @@ jobs: go: [ '1.21.x', '1.20.x', '1.19.x' ] 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') }} @@ -31,3 +31,9 @@ jobs: ${{ runner.os }}-go- - name: Run tests run: go test -v ./... + + release: + needs: test + if: github.ref == 'refs/heads/master' + uses: upfluence/actions/.github/workflows/lib-any-release.yml@master + secrets: inherit diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fce768c..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.16.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 69cc51adbb8e397d28dbb663de00540762fa9afd Mon Sep 17 00:00:00 2001 From: Xavier Goffin Date: Tue, 14 Jan 2025 13:58:14 +0100 Subject: [PATCH 2/2] .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 cd68f5a..b78ba05 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,7 @@ jobs: uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} + cache: false - name: Checkout uses: actions/checkout@v4 - name: Cache Modules