Skip to content

Commit c09f85c

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

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,18 @@ jobs:
1212
- name: Checkout repository
1313
uses: actions/checkout@v4
1414

15-
- name: Install dependencies
15+
- name: Install dependencies and build project
1616
run: npm ci
1717

18-
- name: Build project
19-
run: npm run build -- -c production
20-
2118
- name: Run tests
2219
working-directory: /app
2320
run: |
21+
PKG_VERSION=$(cd $GITHUB_WORKSPACE/dist/ionic-header-parallax && npm pkg get version | tr -d '"')
2422
mkdir cypress
2523
cp -r $GITHUB_WORKSPACE/cypress/* ./cypress
2624
cp $GITHUB_WORKSPACE/cypress.config.ts .
2725
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
26+
npm i $GITHUB_WORKSPACE/dist/ionic-header-parallax/ionic-header-parallax-$PKG_VERSION.tgz
2927
ng serve --host 0.0.0.0 --port 4200 &
3028
(wait-on http://0.0.0.0:4200 --timeout 30000 --interval 1000 && cypress run --headless) \
3129
|| { echo 'Angular server failed to start'; exit 1; }

0 commit comments

Comments
 (0)