-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gha): upgrade GHA upload & download to major version 4. (#7397)
- Loading branch information
Showing
3 changed files
with
57 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ on: | |
workflow_call: | ||
|
||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
DEPLOYMENT_STAGE: test | ||
# Force using BuildKit instead of normal Docker, required so that metadata | ||
# is written/read to allow us to use layers of previous builds as cache. | ||
|
@@ -103,17 +102,17 @@ jobs: | |
make local-unit-test-backend | ||
- name: Upload coverage results as an artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage | ||
name: coverage-backennd | ||
path: /home/runner/work/single-cell-data-portal/single-cell-data-portal/.coverage* | ||
retention-days: 3 | ||
include-hidden-files: true | ||
|
||
- name: Upload Allure results as an artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: allure-results | ||
name: allure-results-backed | ||
path: /home/runner/work/single-cell-data-portal/single-cell-data-portal/allure-results | ||
retention-days: 20 | ||
|
||
|
@@ -164,17 +163,17 @@ jobs: | |
make local-unit-test-wmg-backend | ||
- name: Upload coverage results as an artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage | ||
name: coverage-wmg-backend | ||
path: /home/runner/work/single-cell-data-portal/single-cell-data-portal/.coverage* | ||
retention-days: 3 | ||
include-hidden-files: true | ||
|
||
- name: Upload Allure results as an artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: allure-results | ||
name: allure-results-wmg-backend | ||
path: /home/runner/work/single-cell-data-portal/single-cell-data-portal/allure-results | ||
retention-days: 20 | ||
|
||
|
@@ -225,17 +224,17 @@ jobs: | |
make local-unit-test-de-backend | ||
- name: Upload coverage results as an artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage | ||
name: coverage-de-backend | ||
path: /home/runner/work/single-cell-data-portal/single-cell-data-portal/.coverage* | ||
retention-days: 3 | ||
include-hidden-files: true | ||
|
||
- name: Upload Allure results as an artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: allure-results | ||
name: allure-results-de-backend | ||
path: /home/runner/work/single-cell-data-portal/single-cell-data-portal/allure-results | ||
retention-days: 20 | ||
|
||
|
@@ -286,17 +285,17 @@ jobs: | |
make local-unit-test-processing | ||
- name: Upload coverage results as an artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage | ||
name: coverage-processing | ||
path: /home/runner/work/single-cell-data-portal/single-cell-data-portal/.coverage* | ||
retention-days: 3 | ||
include-hidden-files: true | ||
|
||
- name: Upload Allure results as an artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: allure-results | ||
name: allure-results-processing | ||
path: /home/runner/work/single-cell-data-portal/single-cell-data-portal/allure-results | ||
retention-days: 20 | ||
include-hidden-files: true | ||
|
@@ -347,16 +346,16 @@ jobs: | |
echo "DOCKER_REPO=${DOCKER_REPO}" > .env.ecr | ||
make local-unit-test-wmg-processing | ||
- name: Upload coverage results as an artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage | ||
name: coverage-wmg-processing | ||
path: /home/runner/work/single-cell-data-portal/single-cell-data-portal/.coverage* | ||
retention-days: 3 | ||
include-hidden-files: true | ||
- name: Upload Allure results as an artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: allure-results | ||
name: allure-results-wmg-processing | ||
path: /home/runner/work/single-cell-data-portal/single-cell-data-portal/allure-results | ||
retention-days: 20 | ||
- uses: 8398a7/[email protected] | ||
|
@@ -405,16 +404,16 @@ jobs: | |
echo "DOCKER_REPO=${DOCKER_REPO}" > .env.ecr | ||
make local-unit-test-cellguide-pipeline | ||
- name: Upload coverage results as an artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage | ||
name: coverage-cellguide-pipeline | ||
path: /home/runner/work/single-cell-data-portal/single-cell-data-portal/.coverage* | ||
retention-days: 3 | ||
include-hidden-files: true | ||
- name: Upload Allure results as an artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: allure-results | ||
name: allure-results-cellguide-pipeline | ||
path: /home/runner/work/single-cell-data-portal/single-cell-data-portal/allure-results | ||
retention-days: 20 | ||
- uses: 8398a7/[email protected] | ||
|
@@ -464,17 +463,17 @@ jobs: | |
make local-unit-test-cxg-admin | ||
- name: Upload coverage results as an artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage | ||
name: coverage-cxg-admin | ||
path: /home/runner/work/single-cell-data-portal/single-cell-data-portal/.coverage* | ||
retention-days: 3 | ||
include-hidden-files: true | ||
|
||
- name: Upload Allure results as an artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: allure-results | ||
name: allure-results-cxg-admin | ||
path: /home/runner/work/single-cell-data-portal/single-cell-data-portal/allure-results | ||
retention-days: 20 | ||
|
||
|
@@ -524,17 +523,17 @@ jobs: | |
echo "DOCKER_REPO=${DOCKER_REPO}" > .env.ecr | ||
make local-integration-test-backend | ||
- name: Upload coverage results as an artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage | ||
name: coverage-backend-integration | ||
path: /home/runner/work/single-cell-data-portal/single-cell-data-portal/.coverage* | ||
retention-days: 3 | ||
include-hidden-files: true | ||
|
||
- name: Upload Allure results as an artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: allure-results | ||
name: allure-results-backend-integration | ||
path: /home/runner/work/single-cell-data-portal/single-cell-data-portal/allure-results | ||
retention-days: 20 | ||
- uses: 8398a7/[email protected] | ||
|
@@ -570,16 +569,17 @@ jobs: | |
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
- uses: actions/download-artifact@v3 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: coverage | ||
pattern: coverage-* # Download all coverage artifacts | ||
merge-multiple: true | ||
path: . | ||
- name: coverage report | ||
run: | | ||
echo "DOCKER_REPO=${DOCKER_REPO}" > .env.ecr | ||
make coverage/report-xml | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
env_vars: OS,PYTHON | ||
|
@@ -600,10 +600,11 @@ jobs: | |
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: allure-results | ||
pattern: allure-results-* # Download all allure-results artifacts | ||
path: allure-results | ||
merge-multiple: true | ||
|
||
# Checkout gh-pages branch and get Allure result history | ||
- name: Get Allure history | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,26 +108,28 @@ jobs: | |
|
||
- name: Upload FE test results as an artifact | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: playwright-report ${{ matrix.project }} ${{ matrix.shardCurrent }} of ${{ matrix.shardTotal }} | ||
path: /home/runner/work/single-cell-data-portal/single-cell-data-portal/frontend/playwright-report | ||
retention-days: 14 | ||
|
||
- name: Upload blob report to GitHub Actions Artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: all-blob-reports | ||
name: all-blob-reports-${{ matrix.project }}-${{ matrix.shardCurrent }} | ||
path: /home/runner/work/single-cell-data-portal/single-cell-data-portal/frontend/blob-report | ||
retention-days: 1 | ||
if-no-files-found: error | ||
|
||
# Upload Allure results as an artifact | ||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: allure-results | ||
name: allure-results-${{ matrix.project }}-${{ matrix.shardCurrent }} | ||
path: /home/runner/work/single-cell-data-portal/single-cell-data-portal/frontend/allure-results | ||
retention-days: 20 | ||
if-no-files-found: error | ||
|
||
- name: Install happy | ||
uses: chanzuckerberg/github-actions/.github/actions/[email protected] | ||
|
@@ -162,20 +164,22 @@ jobs: | |
run: npm ci | ||
|
||
- name: Download blob reports from GitHub Actions Artifacts | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: all-blob-reports | ||
pattern: all-blob-reports-* | ||
path: /home/runner/work/single-cell-data-portal/single-cell-data-portal/frontend/blob-reports | ||
merge-multiple: true | ||
|
||
- name: Merge into HTML Report | ||
run: npx playwright merge-reports --reporter html ./blob-reports | ||
|
||
- name: Upload HTML report | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: html-report--attempt-${{ github.run_attempt }} | ||
path: /home/runner/work/single-cell-data-portal/single-cell-data-portal/frontend/playwright-report | ||
retention-days: 30 | ||
if-no-files-found: error | ||
|
||
# https://github.com/myieye/web-languageforge/blob/develop/.github/workflows/e2e-tests.yml | ||
e2e-test: | ||
|
@@ -232,3 +236,4 @@ jobs: | |
name: logged-in-test-results | ||
path: frontend/playwright-report/ | ||
retention-days: 30 | ||
if-no-files-found: error |