From 512297005ba09e42ebc0e951fbabc19addad4be9 Mon Sep 17 00:00:00 2001 From: Mario Apra Date: Mon, 5 Aug 2024 14:17:15 +0100 Subject: [PATCH] Improve dependabot configurations (#2028) * Bump actions/setup-node from 3 to 4 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * Bump docker/setup-buildx-action from 2 to 3 Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2 to 3. - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](https://github.com/docker/setup-buildx-action/compare/v2...v3) --- updated-dependencies: - dependency-name: docker/setup-buildx-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * Bump actions/upload-artifact from 3 to 4 Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * Bump grafana/k6-action from 0.3.0 to 0.3.1 Bumps [grafana/k6-action](https://github.com/grafana/k6-action) from 0.3.0 to 0.3.1. - [Release notes](https://github.com/grafana/k6-action/releases) - [Commits](https://github.com/grafana/k6-action/compare/v0.3.0...v0.3.1) --- updated-dependencies: - dependency-name: grafana/k6-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Bump golangci/golangci-lint-action from 3 to 6 Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3 to 6. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](https://github.com/golangci/golangci-lint-action/compare/v3...v6) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * Reduce number of open PRs from 5 to 3 per ecosystem --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/dependabot.yml | 4 ++++ .github/workflows/build-binaries.yml | 2 +- .github/workflows/docker-image-build-push.yml | 6 +++--- .github/workflows/docs-deploy.yml | 2 +- .github/workflows/docs-test.yml | 2 +- .github/workflows/juno-lint.yml | 2 +- .github/workflows/load-tests.yml | 4 ++-- .github/workflows/starknet-js-tests.yml | 2 +- .github/workflows/sync_first_100_blocks_smoke_test.yml | 2 +- 9 files changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 194c6f87cd..794debc288 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -2,17 +2,21 @@ version: 2 updates: - package-ecosystem: "github-actions" directory: "/" + open-pull-requests-limit: 3 schedule: interval: "weekly" - package-ecosystem: "docker" directory: "/" + open-pull-requests-limit: 3 schedule: interval: "weekly" - package-ecosystem: "gomod" directory: "/" + open-pull-requests-limit: 3 schedule: interval: "weekly" - package-ecosystem: "cargo" directory: "/vm/rust" + open-pull-requests-limit: 3 schedule: interval: "weekly" diff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.yml index 0d7212e9ed..ae2bc83eac 100644 --- a/.github/workflows/build-binaries.yml +++ b/.github/workflows/build-binaries.yml @@ -59,7 +59,7 @@ jobs: fi - name: Upload Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: juno-${{ env.TAG }}-${{ runner.os }}-${{ matrix.architecture }} path: | diff --git a/.github/workflows/docker-image-build-push.yml b/.github/workflows/docker-image-build-push.yml index a0daf4ac0a..acf0bdfda7 100644 --- a/.github/workflows/docker-image-build-push.yml +++ b/.github/workflows/docker-image-build-push.yml @@ -26,7 +26,7 @@ jobs: fetch-depth: 0 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to Docker Hub uses: docker/login-action@v3 @@ -52,7 +52,7 @@ jobs: fetch-depth: 0 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to Docker Hub uses: docker/login-action@v3 @@ -78,7 +78,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to Docker Hub uses: docker/login-action@v3 diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index 28451b2ffd..87266b18ab 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version-file: docs/.nvmrc cache: npm diff --git a/.github/workflows/docs-test.yml b/.github/workflows/docs-test.yml index 2874fa57c6..6b8870c96a 100644 --- a/.github/workflows/docs-test.yml +++ b/.github/workflows/docs-test.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version-file: docs/.nvmrc cache: npm diff --git a/.github/workflows/juno-lint.yml b/.github/workflows/juno-lint.yml index cc24ef1ac2..629f74a77f 100644 --- a/.github/workflows/juno-lint.yml +++ b/.github/workflows/juno-lint.yml @@ -22,7 +22,7 @@ jobs: - name: Install Jemalloc (Ubuntu or self-hosted) run: sudo apt-get update -qq && sudo apt-get install -y libjemalloc-dev libjemalloc2 -y - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 with: # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version version: v1.59.1 diff --git a/.github/workflows/load-tests.yml b/.github/workflows/load-tests.yml index e016c2e065..699b723c01 100644 --- a/.github/workflows/load-tests.yml +++ b/.github/workflows/load-tests.yml @@ -28,7 +28,7 @@ jobs: token: ${{ secrets.REPOSITORY_DISPATCH_TOKEN }} - name: Run local k6 test - uses: grafana/k6-action@v0.3.0 + uses: grafana/k6-action@v0.3.1 with: filename: load-tests/test_cases.js flags: --out json=results.json @@ -38,7 +38,7 @@ jobs: NODE_URL: ${{ github.event.inputs.NODE_URL }} - name: Upload performance test results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: k6-report path: results.json diff --git a/.github/workflows/starknet-js-tests.yml b/.github/workflows/starknet-js-tests.yml index 1ee066e62a..279c5acc18 100644 --- a/.github/workflows/starknet-js-tests.yml +++ b/.github/workflows/starknet-js-tests.yml @@ -21,7 +21,7 @@ jobs: ref: v6.6.6 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '18' diff --git a/.github/workflows/sync_first_100_blocks_smoke_test.yml b/.github/workflows/sync_first_100_blocks_smoke_test.yml index c2bbf3d278..0ac0e9a933 100644 --- a/.github/workflows/sync_first_100_blocks_smoke_test.yml +++ b/.github/workflows/sync_first_100_blocks_smoke_test.yml @@ -32,7 +32,7 @@ jobs: cache: true - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Build docker image run: docker build --build-arg VM_DEBUG=true -t nethermindeth/juno .