Skip to content

Commit

Permalink
Upgrade upload/download artifacts to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Martinez committed May 23, 2024
1 parent 42f15b0 commit 1dd0827
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 31 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,26 +55,11 @@ jobs:
if: always()
runs-on: ubuntu-latest
steps:
- uses: LexisNexis-Public-GHA/sbs-action-download-artifact@v2.13.1
- uses: actions/download-artifact@v4
with:
workflow: Run_api_tests.yml
path: results
- uses: LexisNexis-Public-GHA/sbs-action-download-artifact@v2.13.1
with:
workflow: Run_web_tests.yml
path: results
- uses: LexisNexis-Public-GHA/sbs-action-download-artifact@v2.13.1
with:
workflow: Run_desktop_tests.yml
path: results
- uses: LexisNexis-Public-GHA/sbs-action-download-artifact@v2.13.1
with:
workflow: Run_appium_android_tests.yml
path: results
- uses: LexisNexis-Public-GHA/sbs-action-download-artifact@v2.13.1
with:
workflow: Run_appium_ios_tests.yml
pattern: results-*
path: results


- name: Publish Summary Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,25 @@ jobs:
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Archive Testing artifacts - API
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: testing-artifact-api
path: |
${{ github.workspace }}/samples/TestWare.Samples.API/bin/Release/net6.0
- name: Archive Testing artifacts - Appium Mobile
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: testing-artifact-appium-mobile
path: |
${{ github.workspace }}/samples/TestWare.Samples.Appium.Mobile/bin/Release/net6.0
- name: Archive Testing artifacts - Selenium Web
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: testing-artifact-selenium-web
path: |
${{ github.workspace }}/samples/TestWare.Samples.Selenium.Web/bin/Release/net6.0
- name: Archive Testing artifacts - WinAppDriver
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: testing-artifact-winappdriver
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Run_api_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Run tests
run: dotnet test TestWare.Samples.API.dll --logger "trx;LogFileName=results.trx" --results-directory "${{ inputs.test_results_path }}"
- name: Archive Testing results - API
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: results-API-${{ matrix.os }}
path: ${{ inputs.test_results_path }}/results.trx
4 changes: 2 additions & 2 deletions .github/workflows/Run_appium_android_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ jobs:

- name: Archive Mobile (${{ matrix.os }}) screenshots
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: appium-${{ matrix.os }}-android-screenshots
path: |
${{ inputs.test_results_path }}
- name: Archive Testing results - MOBILE_ANDROID
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: results-MOBILE_ANDROID-${{ matrix.os }}
path: ${{ inputs.test_results_path }}/results.trx
4 changes: 2 additions & 2 deletions .github/workflows/Run_appium_ios_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ jobs:

- name: Archive Mobile iOS (${{ matrix.os }}) screenshots
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: appium-${{ matrix.os }}-ios-screenshots
path: |
${{ inputs.test_results_path }}
- name: Archive Testing results - MOBILE IOS
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: results-MOBILE_IOS-${{ matrix.os }}
path: ${{ inputs.test_results_path }}/results.trx
4 changes: 2 additions & 2 deletions .github/workflows/Run_desktop_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ jobs:
run: dotnet test TestWare.Samples.WinAppDriver.Desktop.dll --logger "trx;LogFileName=results.trx" --results-directory "${{ inputs.test_results_path }}" --filter TestCategory!=WindowsCalculator
- name: Archive DESKTOP (${{ matrix.os }}) screenshots
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: desktop-${{ matrix.os }}-screenshots
path: |
${{ inputs.test_results_path }}
- name: Archive Testing results - DESKTOP
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: results-DESKTOP-${{ matrix.os }}
path: ${{ inputs.test_results_path }}/results.trx
4 changes: 2 additions & 2 deletions .github/workflows/Run_web_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ jobs:
path: |
${{ inputs.test_results_path }}
- name: Archive Testing results - WEB
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: results-WEB-${{ matrix.browser }}
path: ${{ inputs.test_results_path }}/results.trx
- name: Archive Testing artifacts - Allure
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: allure-results
path: '.\allure-results'
Expand Down

0 comments on commit 1dd0827

Please sign in to comment.