From a9ef28c68e7d44ce954e3d194eff843180c125ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Bari=C5=A1i=C4=87?= <48765171+MarkoBarisic@users.noreply.github.com> Date: Tue, 30 Jan 2024 22:52:56 +0100 Subject: [PATCH] Upgrade deprecated github actions (#1673) * upgrade actions/checkout from v3 to v4 * upgrade actions/upload-artifact from v3 to v4 * upgrade actions/download-artifact from v2 and v3 to v4 * Fix duplicate artifact names in diff.yaml * Fix duplicate artifact names in release_debian10.yaml and release_ubuntu2004.yaml --- .github/workflows/daily_benchmark.yaml | 2 +- .github/workflows/diff.yaml | 42 +++++++-------- .github/workflows/full_clang_tidy.yaml | 2 +- .github/workflows/package_memgraph.yaml | 54 +++++++++---------- .github/workflows/performance_benchmarks.yaml | 2 +- .github/workflows/release_debian10.yaml | 32 +++++------ .github/workflows/release_docker.yaml | 2 +- .github/workflows/release_mgbench_client.yaml | 2 +- .github/workflows/release_ubuntu2004.yaml | 28 +++++----- .github/workflows/stress_test_large.yaml | 2 +- .github/workflows/upload_to_s3.yaml | 2 +- 11 files changed, 85 insertions(+), 85 deletions(-) diff --git a/.github/workflows/daily_benchmark.yaml b/.github/workflows/daily_benchmark.yaml index 4cded7b0c..aa2686977 100644 --- a/.github/workflows/daily_benchmark.yaml +++ b/.github/workflows/daily_benchmark.yaml @@ -16,7 +16,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) diff --git a/.github/workflows/diff.yaml b/.github/workflows/diff.yaml index 6dff14c72..411bed79c 100644 --- a/.github/workflows/diff.yaml +++ b/.github/workflows/diff.yaml @@ -27,7 +27,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -65,7 +65,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -137,9 +137,9 @@ jobs: tar -czf code_coverage.tar.gz coverage.json html report.json summary.rmu - name: Save code coverage - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: "Code coverage" + name: "Code coverage(Code analysis)" path: tools/github/generated/code_coverage.tar.gz - name: Run clang-tidy @@ -162,7 +162,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -208,9 +208,9 @@ jobs: ./cppcheck_and_clang_format diff - name: Save cppcheck and clang-format errors - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: "Code coverage" + name: "Code coverage(Debug build)" path: tools/github/cppcheck_and_clang_format.txt release_build: @@ -223,7 +223,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -251,7 +251,7 @@ jobs: ./continuous_integration - name: Save quality assurance status - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: "GQL Behave Status" path: | @@ -325,16 +325,16 @@ jobs: cpack -G DEB --config ../CPackConfig.cmake - name: Save enterprise DEB package - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: "Enterprise DEB package" path: build/output/memgraph*.deb - name: Save test data - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: - name: "Test data" + name: "Test data(Release build)" path: | # multiple paths could be defined build/logs @@ -349,7 +349,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -378,10 +378,10 @@ jobs: ./run.sh "Client initiated failover" ./run.sh "Uninitialized cluster" - name: Save test data - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: - name: "Test data" + name: "Test data(High availability build)" path: | # multiple paths could be defined build/logs @@ -396,7 +396,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -443,10 +443,10 @@ jobs: ./run.sh "Constraints" - name: Save test data - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: - name: "Test data" + name: "Test data(MultiTenancy replication build)" path: | # multiple paths could be defined build/logs @@ -462,7 +462,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -490,7 +490,7 @@ jobs: ./run.sh test-all-individually --binary ../../build/memgraph --ignore-run-stdout-logs --ignore-run-stderr-logs - name: Save Jepsen report - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: ${{ always() }} with: name: "Jepsen Report" @@ -506,7 +506,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) diff --git a/.github/workflows/full_clang_tidy.yaml b/.github/workflows/full_clang_tidy.yaml index bce2a4a0a..10816cd7a 100644 --- a/.github/workflows/full_clang_tidy.yaml +++ b/.github/workflows/full_clang_tidy.yaml @@ -14,7 +14,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) diff --git a/.github/workflows/package_memgraph.yaml b/.github/workflows/package_memgraph.yaml index 48a61ca53..45a62f037 100644 --- a/.github/workflows/package_memgraph.yaml +++ b/.github/workflows/package_memgraph.yaml @@ -42,14 +42,14 @@ jobs: timeout-minutes: 60 steps: - name: "Set up repository" - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Required because of release/get_version.py - name: "Build package" run: | ./release/package/run.sh package amzn-2 ${{ github.event.inputs.build_type }} - name: "Upload package" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: amzn-2 path: build/output/amzn-2/memgraph*.rpm @@ -60,14 +60,14 @@ jobs: timeout-minutes: 60 steps: - name: "Set up repository" - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Required because of release/get_version.py - name: "Build package" run: | ./release/package/run.sh package centos-7 ${{ github.event.inputs.build_type }} - name: "Upload package" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: centos-7 path: build/output/centos-7/memgraph*.rpm @@ -78,14 +78,14 @@ jobs: timeout-minutes: 60 steps: - name: "Set up repository" - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Required because of release/get_version.py - name: "Build package" run: | ./release/package/run.sh package centos-9 ${{ github.event.inputs.build_type }} - name: "Upload package" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: centos-9 path: build/output/centos-9/memgraph*.rpm @@ -96,14 +96,14 @@ jobs: timeout-minutes: 60 steps: - name: "Set up repository" - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Required because of release/get_version.py - name: "Build package" run: | ./release/package/run.sh package debian-10 ${{ github.event.inputs.build_type }} - name: "Upload package" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: debian-10 path: build/output/debian-10/memgraph*.deb @@ -114,14 +114,14 @@ jobs: timeout-minutes: 60 steps: - name: "Set up repository" - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Required because of release/get_version.py - name: "Build package" run: | ./release/package/run.sh package debian-11 ${{ github.event.inputs.build_type }} - name: "Upload package" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: debian-11 path: build/output/debian-11/memgraph*.deb @@ -132,14 +132,14 @@ jobs: timeout-minutes: 120 steps: - name: "Set up repository" - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Required because of release/get_version.py - name: "Build package" run: | ./release/package/run.sh package debian-11-arm ${{ github.event.inputs.build_type }} - name: "Upload package" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: debian-11-aarch64 path: build/output/debian-11-arm/memgraph*.deb @@ -150,14 +150,14 @@ jobs: timeout-minutes: 60 steps: - name: "Set up repository" - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Required because of release/get_version.py - name: "Build package" run: | ./release/package/run.sh package debian-11 ${{ github.event.inputs.build_type }} --for-platform - name: "Upload package" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: debian-11-platform path: build/output/debian-11/memgraph*.deb @@ -168,7 +168,7 @@ jobs: timeout-minutes: 60 steps: - name: "Set up repository" - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Required because of release/get_version.py - name: "Build package" @@ -177,7 +177,7 @@ jobs: ./run.sh package debian-11 ${{ github.event.inputs.build_type }} --for-docker ./run.sh docker - name: "Upload package" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: docker path: build/output/docker/memgraph*.tar.gz @@ -188,14 +188,14 @@ jobs: timeout-minutes: 60 steps: - name: "Set up repository" - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Required because of release/get_version.py - name: "Build package" run: | ./release/package/run.sh package fedora-36 ${{ github.event.inputs.build_type }} - name: "Upload package" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: fedora-36 path: build/output/fedora-36/memgraph*.rpm @@ -206,14 +206,14 @@ jobs: timeout-minutes: 60 steps: - name: "Set up repository" - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Required because of release/get_version.py - name: "Build package" run: | ./release/package/run.sh package ubuntu-18.04 ${{ github.event.inputs.build_type }} - name: "Upload package" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ubuntu-18.04 path: build/output/ubuntu-18.04/memgraph*.deb @@ -224,14 +224,14 @@ jobs: timeout-minutes: 60 steps: - name: "Set up repository" - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Required because of release/get_version.py - name: "Build package" run: | ./release/package/run.sh package ubuntu-20.04 ${{ github.event.inputs.build_type }} - name: "Upload package" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ubuntu-20.04 path: build/output/ubuntu-20.04/memgraph*.deb @@ -242,14 +242,14 @@ jobs: timeout-minutes: 60 steps: - name: "Set up repository" - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Required because of release/get_version.py - name: "Build package" run: | ./release/package/run.sh package ubuntu-22.04 ${{ github.event.inputs.build_type }} - name: "Upload package" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ubuntu-22.04 path: build/output/ubuntu-22.04/memgraph*.deb @@ -260,14 +260,14 @@ jobs: timeout-minutes: 120 steps: - name: "Set up repository" - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Required because of release/get_version.py - name: "Build package" run: | ./release/package/run.sh package ubuntu-22.04-arm ${{ github.event.inputs.build_type }} - name: "Upload package" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ubuntu-22.04-aarch64 path: build/output/ubuntu-22.04-arm/memgraph*.deb @@ -279,7 +279,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: # name: # if name input parameter is not provided, all artifacts are downloaded # and put in directories named after each one. diff --git a/.github/workflows/performance_benchmarks.yaml b/.github/workflows/performance_benchmarks.yaml index d31c661de..cc030c180 100644 --- a/.github/workflows/performance_benchmarks.yaml +++ b/.github/workflows/performance_benchmarks.yaml @@ -14,7 +14,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) diff --git a/.github/workflows/release_debian10.yaml b/.github/workflows/release_debian10.yaml index 354d330d6..36b9148c3 100644 --- a/.github/workflows/release_debian10.yaml +++ b/.github/workflows/release_debian10.yaml @@ -28,7 +28,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -67,7 +67,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -109,9 +109,9 @@ jobs: tar -czf code_coverage.tar.gz coverage.json html report.json summary.rmu - name: Save code coverage - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: "Code coverage" + name: "Code coverage(Coverage build)" path: tools/github/generated/code_coverage.tar.gz debug_build: @@ -121,7 +121,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -163,9 +163,9 @@ jobs: ./cppcheck_and_clang_format diff - name: Save cppcheck and clang-format errors - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: "Code coverage" + name: "Code coverage(Debug build)" path: tools/github/cppcheck_and_clang_format.txt debug_integration_test: @@ -175,7 +175,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -205,7 +205,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -240,7 +240,7 @@ jobs: cpack -G DEB --config ../CPackConfig.cmake - name: Save enterprise DEB package - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: "Enterprise DEB package" path: build/output/memgraph*.deb @@ -253,7 +253,7 @@ jobs: ./continuous_integration - name: Save quality assurance status - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: "GQL Behave Status" path: | @@ -276,7 +276,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -328,7 +328,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -376,7 +376,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -424,7 +424,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -453,7 +453,7 @@ jobs: ./run.sh test-all-individually --binary ../../build/memgraph --ignore-run-stdout-logs --ignore-run-stderr-logs - name: Save Jepsen report - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: ${{ always() }} with: name: "Jepsen Report" diff --git a/.github/workflows/release_docker.yaml b/.github/workflows/release_docker.yaml index 2ebb2e804..d5e02254b 100644 --- a/.github/workflows/release_docker.yaml +++ b/.github/workflows/release_docker.yaml @@ -19,7 +19,7 @@ jobs: DOCKER_REPOSITORY_NAME: memgraph steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v2 diff --git a/.github/workflows/release_mgbench_client.yaml b/.github/workflows/release_mgbench_client.yaml index 2abdad2b9..88c65f7fe 100644 --- a/.github/workflows/release_mgbench_client.yaml +++ b/.github/workflows/release_mgbench_client.yaml @@ -20,7 +20,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v2 diff --git a/.github/workflows/release_ubuntu2004.yaml b/.github/workflows/release_ubuntu2004.yaml index a7ef8c223..96f85bdf3 100644 --- a/.github/workflows/release_ubuntu2004.yaml +++ b/.github/workflows/release_ubuntu2004.yaml @@ -28,7 +28,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -63,7 +63,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -105,9 +105,9 @@ jobs: tar -czf code_coverage.tar.gz coverage.json html report.json summary.rmu - name: Save code coverage - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: "Code coverage" + name: "Code coverage(Coverage build)" path: tools/github/generated/code_coverage.tar.gz debug_build: @@ -117,7 +117,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -159,9 +159,9 @@ jobs: ./cppcheck_and_clang_format diff - name: Save cppcheck and clang-format errors - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: "Code coverage" + name: "Code coverage(Debug build)" path: tools/github/cppcheck_and_clang_format.txt debug_integration_test: @@ -171,7 +171,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -201,7 +201,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -236,7 +236,7 @@ jobs: cpack -G DEB --config ../CPackConfig.cmake - name: Save enterprise DEB package - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: "Enterprise DEB package" path: build/output/memgraph*.deb @@ -249,7 +249,7 @@ jobs: ./continuous_integration - name: Save quality assurance status - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: "GQL Behave Status" path: | @@ -272,7 +272,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -324,7 +324,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) @@ -372,7 +372,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) diff --git a/.github/workflows/stress_test_large.yaml b/.github/workflows/stress_test_large.yaml index 0531d6e56..54a6c55ba 100644 --- a/.github/workflows/stress_test_large.yaml +++ b/.github/workflows/stress_test_large.yaml @@ -37,7 +37,7 @@ jobs: steps: - name: Set up repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Number of commits to fetch. `0` indicates all history for all # branches and tags. (default: 1) diff --git a/.github/workflows/upload_to_s3.yaml b/.github/workflows/upload_to_s3.yaml index 978af7d66..b6bda4ca5 100644 --- a/.github/workflows/upload_to_s3.yaml +++ b/.github/workflows/upload_to_s3.yaml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Download artifacts - uses: dawidd6/action-download-artifact@v2 + uses: dawidd6/action-download-artifact@v4 with: workflow: package_all.yaml workflow_conclusion: success