From 81f4d35f2b27a9107f7a5e51ec2aa3eabf34f79e Mon Sep 17 00:00:00 2001 From: Xavier Goffin Date: Mon, 13 Jan 2025 14:25:13 +0100 Subject: [PATCH] .github/workflows: update CI action versions, add auto release --- .github/workflows/ci.yml | 10 ++++++++-- .github/workflows/lint.yml | 6 +++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29d8eef..71743ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,9 +19,9 @@ jobs: 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') }} @@ -29,3 +29,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 0a285ee..082dc87 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: v1.20 + go-version: 'v1.20' - name: Check out code - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: golanci-lint uses: upfluence/action-golangci-lint@master with: