From 51f767647762b4ba2ea456a9d27531959b0bf8bc Mon Sep 17 00:00:00 2001 From: Mike Alhayek Date: Thu, 28 Mar 2024 14:56:58 -0700 Subject: [PATCH] Update Workflow actions to the latest versions Fix #15553 --- .github/workflows/assets_validation.yml | 4 ++-- .github/workflows/functional_all_db.yml | 32 ++++++++++++------------- .github/workflows/mac_unit_test_ci.yml | 2 +- .github/workflows/main_ci.yml | 8 +++---- .github/workflows/pr_ci.yml | 8 +++---- .github/workflows/preview_ci.yml | 6 ++--- .github/workflows/release_ci.yml | 8 +++---- 7 files changed, 34 insertions(+), 34 deletions(-) diff --git a/.github/workflows/assets_validation.yml b/.github/workflows/assets_validation.yml index 82d83907f26..588062e7918 100644 --- a/.github/workflows/assets_validation.yml +++ b/.github/workflows/assets_validation.yml @@ -7,8 +7,8 @@ jobs: name: Test building assets runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/cache@v3 + - uses: actions/checkout@v4 + - uses: actions/cache@v4 with: path: ~/.npm key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} diff --git a/.github/workflows/functional_all_db.yml b/.github/workflows/functional_all_db.yml index a3a5ee9e7f6..22c1cfcb45d 100644 --- a/.github/workflows/functional_all_db.yml +++ b/.github/workflows/functional_all_db.yml @@ -13,12 +13,12 @@ jobs: container: image: cypress/included:9.6.1 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # We need to install dotnet in the docker container. - - uses: actions/setup-dotnet@v3 + - uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: "15" - name: Functional Tests @@ -26,7 +26,7 @@ jobs: cd test/OrchardCore.Tests.Functional npm install npm run mvc:test - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: failure() with: name: functional-mvc-screenshots @@ -39,9 +39,9 @@ jobs: container: image: cypress/included:9.6.1 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # We need to install dotnet in the docker container. - - uses: actions/setup-dotnet@v3 + - uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' - name: Functional Tests @@ -49,7 +49,7 @@ jobs: cd test/OrchardCore.Tests.Functional npm install npm run cms:test - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: failure() with: name: functional-cms-sqlite-failure @@ -80,9 +80,9 @@ jobs: OrchardCore__ConnectionString: "User ID=postgres;Password=admin;Host=postgres;Port=5432;Database=app;" OrchardCore__DatabaseProvider: "Postgres" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # We need to install dotnet in the docker container. - - uses: actions/setup-dotnet@v3 + - uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' - name: Functional Tests @@ -90,7 +90,7 @@ jobs: cd test/OrchardCore.Tests.Functional npm install npm run cms:test - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: failure() with: name: functional-cms-postgresql-failure @@ -117,9 +117,9 @@ jobs: OrchardCore__ConnectionString: "server=mysql;uid=root;pwd=test123;database=test" OrchardCore__DatabaseProvider: "MySql" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # We need to install dotnet in the docker container. - - uses: actions/setup-dotnet@v3 + - uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' - name: Functional Tests @@ -127,7 +127,7 @@ jobs: cd test/OrchardCore.Tests.Functional npm install npm run cms:test - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: failure() with: name: functional-cms-mysql-failure @@ -153,9 +153,9 @@ jobs: OrchardCore__ConnectionString: "Server=mssql;Database=tempdb;User Id=sa;Password=Password12!;Encrypt=False" OrchardCore__DatabaseProvider: "SqlConnection" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # We need to install dotnet in the docker container. - - uses: actions/setup-dotnet@v3 + - uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' - name: Functional Tests @@ -163,7 +163,7 @@ jobs: cd test/OrchardCore.Tests.Functional npm install npm run cms:test - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: failure() with: name: functional-cms-mssql-failure diff --git a/.github/workflows/mac_unit_test_ci.yml b/.github/workflows/mac_unit_test_ci.yml index cb5a8e63b21..71e5c3c40ad 100644 --- a/.github/workflows/mac_unit_test_ci.yml +++ b/.github/workflows/mac_unit_test_ci.yml @@ -10,7 +10,7 @@ jobs: runs-on: macos-latest name: Unit Tests steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build and test run: | dotnet build -c Release diff --git a/.github/workflows/main_ci.yml b/.github/workflows/main_ci.yml index ca8bc847223..26af91e7515 100644 --- a/.github/workflows/main_ci.yml +++ b/.github/workflows/main_ci.yml @@ -18,11 +18,11 @@ jobs: matrix: os: [ubuntu-latest, windows-latest] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: "15" - - uses: actions/setup-dotnet@v3 + - uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' - name: Build @@ -38,7 +38,7 @@ jobs: npm install npm run cms:test npm run mvc:test - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: matrix.os == 'ubuntu-latest' && failure() with: name: Functional Test failure diff --git a/.github/workflows/pr_ci.yml b/.github/workflows/pr_ci.yml index 7dcde8681af..be7f5702dc0 100644 --- a/.github/workflows/pr_ci.yml +++ b/.github/workflows/pr_ci.yml @@ -17,11 +17,11 @@ jobs: os: [ubuntu-latest, windows-latest] name: Build & Test steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: "15" - - uses: actions/setup-dotnet@v3 + - uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' - name: Build @@ -37,7 +37,7 @@ jobs: npm install npm run cms:test npm run mvc:test - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: matrix.os == 'ubuntu-latest' && failure() with: name: functional-test-failure diff --git a/.github/workflows/preview_ci.yml b/.github/workflows/preview_ci.yml index fe25acb75b8..fbfa1d9b46d 100644 --- a/.github/workflows/preview_ci.yml +++ b/.github/workflows/preview_ci.yml @@ -21,11 +21,11 @@ jobs: Write-Output "Commits found in the last 24 hours: $hasCommitFromLastDay." $shouldPublish = $hasCommitFromLastDay -and '${{ github.event_name }}' -eq 'schedule' "should-publish=$($shouldPublish ? 'true' : 'false')" >> $Env:GITHUB_OUTPUT - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 if: steps.check-publish.outputs.should-publish == 'true' with: node-version: "15" - - uses: actions/setup-dotnet@v3 + - uses: actions/setup-dotnet@v4 if: steps.check-publish.outputs.should-publish == 'true' with: dotnet-version: '8.0.x' @@ -47,7 +47,7 @@ jobs: npm install npm run cms:test npm run mvc:test - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: failure() with: name: Functional Test failure diff --git a/.github/workflows/release_ci.yml b/.github/workflows/release_ci.yml index 3d3d1c312e3..6c30f5ed4b8 100644 --- a/.github/workflows/release_ci.yml +++ b/.github/workflows/release_ci.yml @@ -29,11 +29,11 @@ jobs: echo VERSION:${VERSION} echo ::set-output name=VERSION::${VERSION} shell: bash - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: "15" - - uses: actions/setup-dotnet@v3 + - uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' - name: Set build number @@ -52,7 +52,7 @@ jobs: npm install npm run cms:test npm run mvc:test - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: matrix.os == 'ubuntu-latest' && failure() with: name: Functional Test failure