File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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; }
You can’t perform that action at this time.
0 commit comments