From 924d192de1270f3bcfd29972250723ebd162c4b1 Mon Sep 17 00:00:00 2001 From: Slava <20563034+veaceslavdoina@users.noreply.github.com> Date: Fri, 14 Jun 2024 14:53:18 +0300 Subject: [PATCH] ci: update actions to the latest major versions (#120) --- .github/workflows/ci.yml | 10 +++++----- .github/workflows/docker-reusable.yml | 25 +++++++++++++------------ 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea1ac9e..81f9820 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,22 +6,22 @@ jobs: formatting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 - run: npm install - run: npm run format:check test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # workaround for https://github.com/NomicFoundation/hardhat/issues/3877 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18.15 - run: npm install - run: npm test - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: fuzzing/corpus key: fuzzing diff --git a/.github/workflows/docker-reusable.yml b/.github/workflows/docker-reusable.yml index 5f02008..955ee42 100644 --- a/.github/workflows/docker-reusable.yml +++ b/.github/workflows/docker-reusable.yml @@ -66,26 +66,26 @@ jobs: PLATFORM: ${{ format('{0}/{1}', 'linux', matrix.target.arch) }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Docker - Meta id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.DOCKER_REPO }} - name: Docker - Set up Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Docker - Login to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Docker - Build and Push by digest id: build - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: . file: ${{ env.DOCKER_FILE }} @@ -101,9 +101,9 @@ jobs: touch "/tmp/digests/${digest#sha256:}" - name: Docker - Upload digest - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: digests + name: digests-${{ matrix.target.arch }} path: /tmp/digests/* if-no-files-found: error retention-days: 1 @@ -139,17 +139,18 @@ jobs: fi - name: Docker - Download digests - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: digests + pattern: digests-* + merge-multiple: true path: /tmp/digests - name: Docker - Set up Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Docker - Meta id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.DOCKER_REPO }} flavor: | @@ -161,7 +162,7 @@ jobs: type=sha,enable=${{ env.TAG_SHA }} - name: Docker - Login to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }}