Skip to content

Commit

Permalink
CH-11556 Upgrade version of upload-artifact action (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
duy-dylan-tran-covergo authored Sep 5, 2024
1 parent 1a4c807 commit 0d8033e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .gflows/libs/build_publish_steps.lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ with:
#@ end
name: #@ step_name
if: #@ ifExpression
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: #@ artifact_name
path: #@ path
Expand Down
12 changes: 6 additions & 6 deletions .gflows/libs/integration-tests-legacy-steps.lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
- name: Prepare environment for integration tests
uses: ./launch_environment
with:
mongo-user: #@ environment.mongo_user
mongo-password: #@ environment.mongo_password
mongo-url: #@ environment.mongo_url
mongo-user: #@ environment.mongo_user
mongo-password: #@ environment.mongo_password
mongo-url: #@ environment.mongo_url
service-under-test: #@ environment.service_under_test.name
image-under-test: #@ tagging.candidate_image(registry, environment.service_under_test.image)

Expand All @@ -28,7 +28,7 @@
run: yarn install
#@ for test_case in test_suites.tests:
- name: #@ "Run {} tests".format(test_case)
run: #@ "yarn {}".format(test_case)
run: #@ "yarn {}".format(test_case)
#@ end
- name: Gather test environment logs
if: ${{ always() }}
Expand All @@ -43,8 +43,8 @@
run: docker compose down --remove-orphans
- name: Upload test environment logs as artifact
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: #@ "{} diagnostics".format(test_suites.name)
path: diagnostics/*
#@ end
#@ end
2 changes: 1 addition & 1 deletion .gflows/libs/job_build_nuget.lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
container-path: #@ nuget.container_result_path
host-path: ./nuget
- name: Upload nuget packages as artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Nuget packages
path: ./nuget
Expand Down
20 changes: 10 additions & 10 deletions github-sample/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ jobs:
container-path: app/nuget
host-path: ./nuget
- name: Upload nuget packages as artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Nuget packages
path: ./nuget
Expand Down Expand Up @@ -242,7 +242,7 @@ jobs:
container-path: app/nuget
host-path: ./nuget
- name: Upload nuget packages as artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Nuget packages
path: ./nuget
Expand Down Expand Up @@ -458,7 +458,7 @@ jobs:
host-path: ./TestResults
- name: Upload Unit tests results as artifact
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Unit tests results
path: |
Expand Down Expand Up @@ -570,13 +570,13 @@ jobs:
project-name: integration-test
- name: Upload Integration tests environment diagnostics as artifact
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Integration tests environment diagnostics
path: investigate/*
- name: Upload Integration tests results as artifact
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Integration tests results
path: TestResults
Expand Down Expand Up @@ -699,13 +699,13 @@ jobs:
project-name: integration-test
- name: Upload Acceptance tests environment diagnostics as artifact
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Acceptance tests environment diagnostics
path: investigate/*
- name: Upload Acceptance tests results as artifact
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Acceptance tests results
path: TestResults
Expand Down Expand Up @@ -854,13 +854,13 @@ jobs:
project-name: integration-test
- name: Upload Integration API tests environment diagnostics as artifact
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Integration API tests environment diagnostics
path: investigate/*
- name: Upload Integration API tests results as artifact
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Integration API tests results
path: abc
Expand Down Expand Up @@ -1195,7 +1195,7 @@ jobs:
run: docker compose down --remove-orphans
- name: Upload test environment logs as artifact
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Big tenants legacy integration tests diagnostics
path: diagnostics/*
Expand Down

0 comments on commit 0d8033e

Please sign in to comment.