Skip to content

Commit

Permalink
Pack published packages in e2e tests (#16089)
Browse files Browse the repository at this point in the history
* ci: Pack published packages in e2e tests

* fix: path should be a directory
  • Loading branch information
JLHwung committed Nov 7, 2023
1 parent b9d051a commit fdc025e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/e2e-tests-breaking-esm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,14 @@ jobs:
env:
BABEL_8_BREAKING: true
USE_ESM: true
- name: Pack published packages
working-directory: /tmp
run: tar -cvf verdaccio-workspace.tar verdaccio-workspace
- uses: actions/upload-artifact@v3
with:
name: verdaccio-workspace
path: /tmp/verdaccio-workspace
path: /tmp/verdaccio-workspace.tar
retention-days: 1

e2e-tests:
name: Test
Expand Down Expand Up @@ -89,7 +93,9 @@ jobs:
- uses: actions/download-artifact@v3
with:
name: verdaccio-workspace
path: /tmp/verdaccio-workspace
path: /tmp
- name: Unpack published packages
run: tar -C /tmp -xf /tmp/verdaccio-workspace.tar
- name: Test
run: ./scripts/integration-tests/e2e-${{ matrix.project }}.sh
env:
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ jobs:
cache: "yarn"
- name: Publish
run: ./scripts/integration-tests/publish-local.sh
- name: Pack published packages
working-directory: /tmp
run: tar -cvf verdaccio-workspace.tar verdaccio-workspace
- uses: actions/upload-artifact@v3
with:
name: verdaccio-workspace
path: /tmp/verdaccio-workspace
path: /tmp/verdaccio-workspace.tar
retention-days: 1

e2e-tests:
name: Test
Expand Down Expand Up @@ -82,6 +86,8 @@ jobs:
- uses: actions/download-artifact@v3
with:
name: verdaccio-workspace
path: /tmp/verdaccio-workspace
path: /tmp
- name: Unpack published packages
run: tar -C /tmp -xf /tmp/verdaccio-workspace.tar
- name: Test
run: ./scripts/integration-tests/e2e-${{ matrix.project }}.sh

0 comments on commit fdc025e

Please sign in to comment.