From ce856fdc9cad06c996dfbac9012ca95d1796347f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 17 Jan 2024 19:13:39 +0000 Subject: [PATCH] Update github actions --- .github/workflows/benchmark.yaml | 10 ++++---- .github/workflows/docker-compose-tests.yml | 4 ++-- .github/workflows/go-e2e.yml | 28 +++++++++++----------- .github/workflows/go-releaser.yml | 10 ++++---- .github/workflows/go-scheduled.yml | 12 +++++----- .github/workflows/go.yml | 18 +++++++------- .github/workflows/gosec.yml | 2 +- .github/workflows/integration.yml | 4 ++-- .github/workflows/mixin.yml | 6 ++--- 9 files changed, 47 insertions(+), 47 deletions(-) diff --git a/.github/workflows/benchmark.yaml b/.github/workflows/benchmark.yaml index b1140da795..26c3403188 100644 --- a/.github/workflows/benchmark.yaml +++ b/.github/workflows/benchmark.yaml @@ -16,10 +16,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout current branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go ${{ env.golang-version }} - uses: actions/setup-go@v3.5.0 + uses: actions/setup-go@v5.0.0 with: go-version: ${{ env.golang-version }} id: go @@ -28,13 +28,13 @@ jobs: run: go test -bench=. -run=^$ -benchmem -cpu=1 -count=10 -timeout=6h ./... | tee current.txt - name: Upload results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: current path: current.txt - name: Checkout master branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: 'master' @@ -42,7 +42,7 @@ jobs: run: go test -bench=. -run=^$ -benchmem -cpu=1 -count=10 -timeout=6h ./... | tee master.txt - name: Download results of "Benchmark current PR" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: current diff --git a/.github/workflows/docker-compose-tests.yml b/.github/workflows/docker-compose-tests.yml index a03c3c3e5a..032519cbb3 100644 --- a/.github/workflows/docker-compose-tests.yml +++ b/.github/workflows/docker-compose-tests.yml @@ -20,10 +20,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go ${{ env.golang-version }} - uses: actions/setup-go@v3.5.0 + uses: actions/setup-go@v5.0.0 with: go-version: ${{ env.golang-version }} id: go diff --git a/.github/workflows/go-e2e.yml b/.github/workflows/go-e2e.yml index 08e798f9a3..60b8df55b6 100644 --- a/.github/workflows/go-e2e.yml +++ b/.github/workflows/go-e2e.yml @@ -37,13 +37,13 @@ jobs: docker_image_15: ${{ steps.metadata.outputs.docker_image_15 }} steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: timescale/promscale ref: ${{ inputs.ref }} - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} @@ -88,7 +88,7 @@ jobs: # - {name: "Multinode", shortname: "multinode", multi: true, pg: 14} steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: timescale/promscale ref: ${{ inputs.ref }} @@ -97,13 +97,13 @@ jobs: run: wget https://github.com/timescale/promscale-test-data/raw/main/traces-dataset.sz -O pkg/tests/testdata/traces-dataset.sz - name: Set up Go ${{ env.golang-version }} - uses: actions/setup-go@v3.5.0 + uses: actions/setup-go@v5.0.0 with: go-version: ${{ env.golang-version }} id: go - name: Use Go module caching - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -111,7 +111,7 @@ jobs: ${{ runner.os }}-go- - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} @@ -139,19 +139,19 @@ jobs: # - {name: "Multinode", shortname: "multinode", multi: true, pg: 14} steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: timescale/promscale ref: ${{ inputs.ref }} - name: Set up Go ${{ env.golang-version }} - uses: actions/setup-go@v3.5.0 + uses: actions/setup-go@v5.0.0 with: go-version: ${{ env.golang-version }} id: go - name: Use Go module caching - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -159,7 +159,7 @@ jobs: ${{ runner.os }}-go- - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} @@ -178,19 +178,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: timescale/promscale ref: ${{ inputs.ref }} - name: Set up Go ${{ env.golang-version }} - uses: actions/setup-go@v3.5.0 + uses: actions/setup-go@v5.0.0 with: go-version: ${{ env.golang-version }} id: go - name: Use Go module caching - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -198,7 +198,7 @@ jobs: ${{ runner.os }}-go- - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} diff --git a/.github/workflows/go-releaser.yml b/.github/workflows/go-releaser.yml index d19ad50bd3..d9f9b8e0c6 100644 --- a/.github/workflows/go-releaser.yml +++ b/.github/workflows/go-releaser.yml @@ -21,18 +21,18 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v3.5.0 + uses: actions/setup-go@v5.0.0 with: go-version: ${{ env.golang-version }} - name: Login to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 #login only on tags. Note that login can't work on PRs from forked repos because of missing secrets #this gets around that by only logging in when needed. if: startsWith(github.ref, 'refs/tags/') @@ -41,7 +41,7 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Run GoReleaser Test - uses: goreleaser/goreleaser-action@v4 + uses: goreleaser/goreleaser-action@v5 # do not run test if actually releasing if: startsWith(github.ref, 'refs/tags/') != true with: @@ -50,7 +50,7 @@ jobs: args: release --snapshot --skip-publish --rm-dist -f .goreleaser.yml - name: GoReleaser Release - uses: goreleaser/goreleaser-action@v4 + uses: goreleaser/goreleaser-action@v5 #release only on tags if: startsWith(github.ref, 'refs/tags/') with: diff --git a/.github/workflows/go-scheduled.yml b/.github/workflows/go-scheduled.yml index 5b71349f93..acd5335922 100644 --- a/.github/workflows/go-scheduled.yml +++ b/.github/workflows/go-scheduled.yml @@ -20,16 +20,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go ${{ env.golang-version }} - uses: actions/setup-go@v3.5.0 + uses: actions/setup-go@v5.0.0 with: go-version: ${{ env.golang-version }} id: go - name: Use Go module caching - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -44,7 +44,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: lfs: true @@ -52,13 +52,13 @@ jobs: run: git lfs checkout - name: Set up Go ${{ env.golang-version }} - uses: actions/setup-go@v3.5.0 + uses: actions/setup-go@v5.0.0 with: go-version: ${{ env.golang-version }} id: go - name: Use Go module caching - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 403923a2af..6626800c61 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run ShellCheck run: make shellcheck @@ -30,10 +30,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go ${{ env.golang-version }} - uses: actions/setup-go@v3.5.0 + uses: actions/setup-go@v5.0.0 with: go-version: ${{ env.golang-version }} id: go @@ -61,19 +61,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Checkout test data files run: wget https://github.com/timescale/promscale-test-data/raw/main/traces-dataset.sz -O pkg/tests/testdata/traces-dataset.sz - name: Set up Go ${{ env.golang-version }} - uses: actions/setup-go@v3.5.0 + uses: actions/setup-go@v5.0.0 with: go-version: ${{ env.golang-version }} id: go - name: Use Go module caching - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -89,7 +89,7 @@ jobs: - name: 'Upload Log Artifact' if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: unit-run.log path: unit-run.log @@ -104,10 +104,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go ${{ env.golang-version }} - uses: actions/setup-go@v3.5.0 + uses: actions/setup-go@v5.0.0 with: go-version: ${{ env.golang-version }} diff --git a/.github/workflows/gosec.yml b/.github/workflows/gosec.yml index a5ada5ae78..4ec47a28cc 100644 --- a/.github/workflows/gosec.yml +++ b/.github/workflows/gosec.yml @@ -14,7 +14,7 @@ jobs: GO111MODULE: on steps: - name: Checkout Source - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run Gosec Security Scanner uses: securego/gosec@v2.14.0 with: diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index d576410493..e329cd31de 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -26,10 +26,10 @@ jobs: #- 12 steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go ${{ env.golang-version }} - uses: actions/setup-go@v3.5.0 + uses: actions/setup-go@v5.0.0 with: go-version: ${{ env.golang-version }} id: go diff --git a/.github/workflows/mixin.yml b/.github/workflows/mixin.yml index b9e1264450..b9935d67f2 100644 --- a/.github/workflows/mixin.yml +++ b/.github/workflows/mixin.yml @@ -19,15 +19,15 @@ jobs: runs-on: ubuntu-latest name: Check monitoring mixin steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Go ${{ env.golang-version }} - uses: actions/setup-go@v3.5.0 + uses: actions/setup-go@v5.0.0 with: go-version: ${{ env.golang-version }} id: go - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: go-version: ${{ env.golang-version }}