Skip to content

Commit

Permalink
chore: Update of upload-artifact and download-artifact (#2828)
Browse files Browse the repository at this point in the history
  • Loading branch information
StaNov authored Jan 9, 2025
1 parent 084c2e6 commit 98a9371
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prerelease-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
env:
KUBERNETES_DO_SERVICE_CONFIG: ${{secrets.KUBERNETES_DO_SERVICE_CONFIG}}

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
TOLGEE_API_KEY: ${{secrets.TOLGEE_API_KEY}}
working-directory: ./webapp

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: test
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/reportIntermittentTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Tar Deployment build
run: tar -czf ~/backend-development.tgz ./backend/development/build

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: backend
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}

- name: Download backend build result
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: backend
path: ~/
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
reportName=${{ matrix.command }}
echo "reportName=${reportName//\:/_}" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: backend_test_reports_${{ steps.reportName.outputs.reportName }}
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
key: cache-node-modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}

- name: Download backend build result
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: backend
path: ~/
Expand All @@ -187,13 +187,13 @@ jobs:
run: tar -xzf ~/backend-app.tgz ./backend/app/build

- name: Download frontend build result
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: webapp
path: ./webapp/dist

- name: Download dependencies
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: e2e_deps
path: ~/
Expand Down Expand Up @@ -225,7 +225,7 @@ jobs:
E2E_TOTAL_JOBS: ${{matrix.total_jobs}}
E2E_JOB_INDEX: ${{matrix.job_index}}

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure()
with:
name: e2e ${{ matrix.job_index }}
Expand Down Expand Up @@ -270,7 +270,7 @@ jobs:
TOLGEE_API_URL: ${{secrets.TOLGEE_API_URL}}

- name: Upload built webapp
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: webapp
path: webapp/build
Expand Down Expand Up @@ -305,7 +305,7 @@ jobs:
tar -czf ~/cypress_cache.tgz ./Cypress
working-directory: /home/runner/.cache/

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: e2e_deps
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
tar -czf ~/ee-backend-app.tgz ./ee/backend/app/build
tar -czf ~/ee-backend-tests.tgz ./ee/backend/tests/build
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: backend
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}

- name: Download backend build result
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: backend
path: ~/
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
reportName=${{ matrix.command }}
echo "reportName=${reportName//\:/_}" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: backend_test_reports_${{ steps.reportName.outputs.reportName }}
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
key: cache-node-modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}

- name: Download backend build result
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: backend
path: ~/
Expand All @@ -211,13 +211,13 @@ jobs:
tar -xzf ~/ee-backend-tests.tgz ./ee/backend/tests/build
- name: Download frontend build result
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: webapp
path: ./webapp/dist

- name: Download dependencies
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: e2e_deps
path: ~/
Expand Down Expand Up @@ -252,7 +252,7 @@ jobs:
E2E_JOB_INDEX: ${{matrix.job_index}}
CI_RELEASE: ${{ github.event_name == 'push' && true || false }}

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure()
with:
name: e2e
Expand All @@ -261,7 +261,7 @@ jobs:
./e2e/cypress/screenshots/**/*
./e2e/server
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure()
with:
name: e2e_server_log_${{ matrix.job_index }}
Expand Down Expand Up @@ -305,7 +305,7 @@ jobs:
TOLGEE_API_URL: ${{secrets.TOLGEE_API_URL}}

- name: Upload built webapp
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: webapp
path: webapp/dist
Expand Down Expand Up @@ -419,7 +419,7 @@ jobs:
tar -czf ~/cypress_cache.tgz ./Cypress
working-directory: /home/runner/.cache/

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: e2e_deps
Expand Down

0 comments on commit 98a9371

Please sign in to comment.