From e990ebedcac13e9f08787843aca7fc2c84caa407 Mon Sep 17 00:00:00 2001 From: Artem Date: Wed, 8 Nov 2023 18:30:19 +0100 Subject: [PATCH] Fix: workflows --- .github/workflows/build.yml | 10 +++++----- .github/workflows/test.yml | 16 +++++++++++----- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3fce47b..c036821 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,13 +19,13 @@ jobs: DOCKER_IMAGE_BASE: ${{ github.repository }} steps: - name: Check out the repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Log in to the registry - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ${{ env.DOCKER_REGISTRY }} username: ${{ github.actor }} @@ -35,12 +35,12 @@ jobs: - name: Indexer image tags & labels id: meta-indexer - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v5 with: images: ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE_BASE }} - name: Indexer image build & push - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v5 with: context: . file: build/Dockerfile diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 74a22ca..b33bf3e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,19 +7,25 @@ jobs: name: Linter runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout code + uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.21.2' + cache: false - name: golangci-lint - uses: golangci/golangci-lint-action@v2.3.0 + uses: golangci/golangci-lint-action@v3 with: - version: v1.51.2 - args: --timeout=3m + version: v1.54.1 + args: --timeout=5m test: runs-on: ubuntu-latest steps: - name: install Go uses: actions/setup-go@v2 with: - go-version: 1.20.x + go-version: 1.21.x - name: checkout code uses: actions/checkout@v2 - uses: actions/cache@v2