Skip to content

Commit 1c26017

Browse files
committed
ci(actions): remove \"from version en var to fix CI error
1 parent 2cff7f8 commit 1c26017

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ jobs:
2121
- name: Run tests
2222
working-directory: /app
2323
run: |
24+
PKG_VERSION=$(cd $GITHUB_WORKSPACE/dist/ionic-header-parallax && npm pkg get version | tr -d '"')
2425
mkdir cypress
2526
cp -r $GITHUB_WORKSPACE/cypress/* ./cypress
2627
cp $GITHUB_WORKSPACE/cypress.config.ts .
2728
cp -r $GITHUB_WORKSPACE/src/app/home/* ./src/app/home
28-
npm i $GITHUB_WORKSPACE/dist/ionic-header-parallax-$(cd $GITHUB_WORKSPACE/dist/ionic-header-parallax && npm pkg get version).tgz
29+
npm i $GITHUB_WORKSPACE/dist/ionic-header-parallax-$PCK_VERSION.tgz
2930
ng serve --host 0.0.0.0 --port 4200 &
3031
(wait-on http://0.0.0.0:4200 --timeout 30000 --interval 1000 && cypress run --headless) \
3132
|| { echo 'Angular server failed to start'; exit 1; }

0 commit comments

Comments
 (0)