From f266a7f5be1c1cbf4951217e71805ee608480ac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ljubo=20Nikoli=C4=87?= Date: Wed, 13 Mar 2024 14:38:39 +0100 Subject: [PATCH] bump actions to version where node20 is used --- .github/actions/setup-go-cache/action.yml | 2 +- .../airflow-operator-release-to-pypi.yml | 4 +-- .github/workflows/airflow-operator.yml | 8 +++--- .github/workflows/build.yml | 16 +++++------ .github/workflows/codeql-analysis.yml | 10 +++---- .github/workflows/lint.yml | 28 +++++++++---------- .github/workflows/pages.yml | 4 +-- .../python-client-release-to-pypi.yml | 4 +-- .github/workflows/python-client.yml | 6 ++-- .github/workflows/python-tests/action.yml | 4 +-- .github/workflows/release-rc.yml | 6 ++-- .github/workflows/release.yml | 12 ++++---- .github/workflows/slack-alerts.yml | 2 +- .github/workflows/test.yml | 28 +++++++++---------- 14 files changed, 67 insertions(+), 67 deletions(-) diff --git a/.github/actions/setup-go-cache/action.yml b/.github/actions/setup-go-cache/action.yml index cd07bbd81be..5754efd7063 100644 --- a/.github/actions/setup-go-cache/action.yml +++ b/.github/actions/setup-go-cache/action.yml @@ -20,7 +20,7 @@ runs: using: "composite" steps: - id: setup-go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ inputs.go-version }} check-latest: true diff --git a/.github/workflows/airflow-operator-release-to-pypi.yml b/.github/workflows/airflow-operator-release-to-pypi.yml index 3360a2657c2..5a0e27210d3 100644 --- a/.github/workflows/airflow-operator-release-to-pypi.yml +++ b/.github/workflows/airflow-operator-release-to-pypi.yml @@ -7,13 +7,13 @@ jobs: run-python-tests: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3.3.0 + - uses: actions/checkout@v4 - name: Setup Go uses: ./.github/actions/setup-go-cache with: cache-prefix: run-python-tests - name: Install Protoc - uses: arduino/setup-protoc@v2 + uses: arduino/setup-protoc@v3 with: version: '23.3' repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/airflow-operator.yml b/.github/workflows/airflow-operator.yml index b8f1f6a4d57..4868ed39b58 100644 --- a/.github/workflows/airflow-operator.yml +++ b/.github/workflows/airflow-operator.yml @@ -54,13 +54,13 @@ jobs: - tox-env: 'py310' python: '3.10' steps: - - uses: actions/checkout@v3.3.0 + - uses: actions/checkout@v4 - name: Setup Go uses: ./.github/actions/setup-go-cache with: cache-prefix: airflow-tox - name: Install Protoc - uses: arduino/setup-protoc@v2 + uses: arduino/setup-protoc@v3 with: version: '23.3' repo-token: ${{ secrets.GITHUB_TOKEN }} @@ -80,7 +80,7 @@ jobs: # This variable is picked up by the goreleaser config. DOCKER_BUILDX_BUILDER: "builder" steps: - - uses: actions/checkout@v3.3.0 + - uses: actions/checkout@v4 - run: docker buildx create --name ${DOCKER_BUILDX_BUILDER} --driver docker-container --use - run: docker buildx install @@ -97,7 +97,7 @@ jobs: mkdir -p .kube/external go run github.com/magefile/mage@v1.14.0 -v localdev minimal - name: Install Protoc - uses: arduino/setup-protoc@v2 + uses: arduino/setup-protoc@v3 with: version: '23.3' repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4688a4e303d..4ca0ff98457 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest-16-cores if: github.repository_owner == 'armadaproject' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -19,9 +19,9 @@ jobs: - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - - uses: goreleaser/goreleaser-action@v3 + - uses: goreleaser/goreleaser-action@v5 with: distribution: goreleaser version: v1.20.0 @@ -42,7 +42,7 @@ jobs: - name: Save Docker image tarballs as artifacts if: github.event_name == 'push' && github.ref == 'refs/heads/master' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: armada-image-tarballs path: /tmp/imgs @@ -52,13 +52,13 @@ jobs: permissions: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 fetch-tags: true - name: Setup the latest .NET 7 SDK - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: 7.0.x @@ -69,7 +69,7 @@ jobs: cache-tools: true - name: Install Protoc - uses: arduino/setup-protoc@v2 + uses: arduino/setup-protoc@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} version: '23.3' @@ -84,7 +84,7 @@ jobs: run: go run github.com/magefile/mage@v1.14.0 -v packNuget - name: Save nupkg artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: nupkg-artifacts path: | diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 32d60e4712a..bbd38eedc2b 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -38,10 +38,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3.3.0 + uses: actions/checkout@v4 # The ArmadaProject.Io.Client needs the generated proto files - name: Install Protoc - uses: arduino/setup-protoc@v2 + uses: arduino/setup-protoc@v3 with: version: '23.3' repo-token: ${{ secrets.GITHUB_TOKEN }} @@ -57,7 +57,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -68,7 +68,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 # ℹ️ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -82,4 +82,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3920f3b2301..a0eb1ccb748 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,10 +15,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3.3.0 + uses: actions/checkout@v4 - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 16.14.2 cache: yarn @@ -32,26 +32,26 @@ jobs: - name: Generating TypeScript lint results as summary working-directory: ./internal/lookout/ui run: | - yarn run lint &> lint_results.txt || true - lint_results=$(cat lint_results.txt) - echo -e "## 🪧 Typescript Lint Results\n" >> $GITHUB_STEP_SUMMARY - if [[ $lint_results =~ "problem" ]]; then - echo -e "### List of Lint Issues \n" >> $GITHUB_STEP_SUMMARY - echo -e "${lint_results}" >> $GITHUB_STEP_SUMMARY - echo -e "${lint_results}" - exit 1 - else + yarn run lint &> lint_results.txt || true + lint_results=$(cat lint_results.txt) + echo -e "## 🪧 Typescript Lint Results\n" >> $GITHUB_STEP_SUMMARY + if [[ $lint_results =~ "problem" ]]; then + echo -e "### List of Lint Issues \n" >> $GITHUB_STEP_SUMMARY + echo -e "${lint_results}" >> $GITHUB_STEP_SUMMARY + echo -e "${lint_results}" + exit 1 + else echo -e "### No Lint issues found.\n" >> $GITHUB_STEP_SUMMARY echo -e "No Lint issues found." exit 0 - fi + fi go-lint: name: Lint Go runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v3.3.0 + uses: actions/checkout@v4 - name: Setup Go uses: ./.github/actions/setup-go-cache @@ -59,7 +59,7 @@ jobs: cache-prefix: go-lint - name: Lint using golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 with: skip-pkg-cache: true skip-build-cache: true diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 8f89ed5d5ca..359509df257 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -17,12 +17,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout master - uses: actions/checkout@v3.3.0 + uses: actions/checkout@v4 with: path: master - name: Checkout gh-pages branch - uses: actions/checkout@v3.3.0 + uses: actions/checkout@v4 with: ref: 'gh-pages' path: gh-pages diff --git a/.github/workflows/python-client-release-to-pypi.yml b/.github/workflows/python-client-release-to-pypi.yml index 8f6bed06af3..33866ffd5c9 100644 --- a/.github/workflows/python-client-release-to-pypi.yml +++ b/.github/workflows/python-client-release-to-pypi.yml @@ -7,13 +7,13 @@ jobs: run-python-tests: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3.3.0 + - uses: actions/checkout@v4 - name: Setup Go uses: ./.github/actions/setup-go-cache with: cache-prefix: run-python-tests - name: Install Protoc - uses: arduino/setup-protoc@v2 + uses: arduino/setup-protoc@v3 with: version: '23.3' repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/python-client.yml b/.github/workflows/python-client.yml index 0275e9221e8..8541394a811 100644 --- a/.github/workflows/python-client.yml +++ b/.github/workflows/python-client.yml @@ -42,7 +42,7 @@ jobs: - tox-env: 'py310' python: '3.10' steps: - - uses: actions/checkout@v3.3.0 + - uses: actions/checkout@v4 - name: Setup Go uses: ./.github/actions/setup-go-cache with: @@ -63,7 +63,7 @@ jobs: # This variable is picked up by the goreleaser config. DOCKER_BUILDX_BUILDER: "builder" steps: - - uses: actions/checkout@v3.3.0 + - uses: actions/checkout@v4 - run: docker buildx create --name ${DOCKER_BUILDX_BUILDER} --driver docker-container --use - run: docker buildx install @@ -80,7 +80,7 @@ jobs: mkdir -p .kube/external go run github.com/magefile/mage@v1.14.0 -v localdev minimal - name: Install Protoc - uses: arduino/setup-protoc@v2 + uses: arduino/setup-protoc@v3 with: version: '23.3' repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/python-tests/action.yml b/.github/workflows/python-tests/action.yml index 645f386bf98..3f261dd5675 100644 --- a/.github/workflows/python-tests/action.yml +++ b/.github/workflows/python-tests/action.yml @@ -17,14 +17,14 @@ inputs: runs: using: "composite" steps: - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ inputs.python-version }} # Tox to run tests; build to build the wheel after tests pass - run: pip install tox==3.27.1 build twine shell: bash - name: Install Protoc - uses: arduino/setup-protoc@v2 + uses: arduino/setup-protoc@v3 with: version: '23.3' repo-token: ${{ inputs.github-token }} diff --git a/.github/workflows/release-rc.yml b/.github/workflows/release-rc.yml index f220c7b2bf2..e3812818548 100644 --- a/.github/workflows/release-rc.yml +++ b/.github/workflows/release-rc.yml @@ -18,7 +18,7 @@ jobs: steps: - name: "Checkout" - uses: "actions/checkout@v3.3.0" + uses: "actions/checkout@v4" with: fetch-depth: 0 @@ -45,12 +45,12 @@ jobs: steps: - name: "Checkout" - uses: "actions/checkout@v3.3.0" + uses: "actions/checkout@v4" with: fetch-depth: 0 - name: "Docker login" - uses: "docker/login-action@v2" + uses: "docker/login-action@v3" with: username: "${{ secrets.DOCKERHUB_USER }}" password: "${{ secrets.DOCKERHUB_PASS }}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 920e8e4d39d..87fae9f257a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: steps: - name: "Checkout" - uses: "actions/checkout@v3.3.0" + uses: "actions/checkout@v4" with: fetch-depth: 0 @@ -45,7 +45,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3.3.0 + uses: actions/checkout@v4 with: fetch-depth: 0 # Checkout the tag that triggered the workflow. @@ -61,10 +61,10 @@ jobs: - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: "Docker login" - uses: "docker/login-action@v2" + uses: "docker/login-action@v3" with: username: "${{ secrets.DOCKERHUB_USER }}" password: "${{ secrets.DOCKERHUB_PASS }}" @@ -80,7 +80,7 @@ jobs: echo "GORELEASER_PREVIOUS_TAG=$previous_tag" >> $GITHUB_ENV - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v4 + uses: goreleaser/goreleaser-action@v5 with: distribution: goreleaser version: v1.19.2 @@ -105,7 +105,7 @@ jobs: environment: nuget-release steps: - name: Setup the latest .NET 7 SDK - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: 7.0.x diff --git a/.github/workflows/slack-alerts.yml b/.github/workflows/slack-alerts.yml index 7c799ce5470..15be0b7cb25 100644 --- a/.github/workflows/slack-alerts.yml +++ b/.github/workflows/slack-alerts.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest if: github.event.workflow_run.conclusion == 'failure' steps: - - uses: actions/checkout@v3.3.0 + - uses: actions/checkout@v4 - name: "Send Notification" uses: Mo-Fatah/ci-alerts@v2 env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aee304d83a8..aad684f4a0d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,10 +14,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3.3.0 + uses: actions/checkout@v4 - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 16.14.2 cache: yarn @@ -29,7 +29,7 @@ jobs: working-directory: ./internal/lookout/ui - name: Publish JUnit Report - uses: mikepenz/action-junit-report@v3 + uses: mikepenz/action-junit-report@v4 if: always() with: report_paths: ./internal/lookout/ui/junit.xml @@ -40,7 +40,7 @@ jobs: - name: Upload Test Reports Artifacts if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ts-unit-test-reports path: ./internal/lookout/ui/junit.xml @@ -53,7 +53,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3.3.0 + uses: actions/checkout@v4 - name: Setup Go uses: ./.github/actions/setup-go-cache @@ -65,7 +65,7 @@ jobs: run: go run github.com/magefile/mage@v1.14.0 -v tests - name: Publish JUnit Report - uses: mikepenz/action-junit-report@v3 + uses: mikepenz/action-junit-report@v4 if: always() with: report_paths: test-reports/unit-tests.xml @@ -76,7 +76,7 @@ jobs: - name: Upload Test Reports Artifacts if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: go-unit-test-reports path: test-reports/ @@ -95,7 +95,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3.3.0 + uses: actions/checkout@v4 - name: Create Docker Buildx Builder run: docker buildx create --name ${DOCKER_BUILDX_BUILDER} --driver docker-container --use @@ -119,7 +119,7 @@ jobs: run: go run github.com/magefile/mage@v1.14.0 -v testsuite - name: Upload JUnit Report Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: go-integration-test-reports path: junit.xml @@ -133,7 +133,7 @@ jobs: docker logs pulsar > ./logs/pulsar.log 2>&1 - name: Upload Docker Compose Logs - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: name: docker-compose-logs @@ -142,7 +142,7 @@ jobs: if-no-files-found: error - name: Publish JUnit Report - uses: mikepenz/action-junit-report@v3 + uses: mikepenz/action-junit-report@v4 if: always() with: report_paths: junit.xml @@ -157,7 +157,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3.3.0 + uses: actions/checkout@v4 - name: Setup Go uses: ./.github/actions/setup-go-cache @@ -196,10 +196,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3.3.0 + uses: actions/checkout@v4 - name: Install Protoc - uses: arduino/setup-protoc@v2 + uses: arduino/setup-protoc@v3 with: version: '23.3' repo-token: ${{ secrets.GITHUB_TOKEN }}