Skip to content

Commit

Permalink
chore(CI): move the command to start the server into an npm script as…
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime1992 committed Dec 9, 2022
1 parent 254c212 commit ddda44d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: cypress-io/github-action@v5
with:
browser: chrome
start: ls && ls dist && cp -r dist/ngx-sub-form-demo dist/ngx-sub-form-demo-e2e && sed -i 's/base href="https:\/\/cloudnc.github.io\/ngx-sub-form\/"/base href="\/"/' dist/ngx-sub-form-demo-e2e/index.html && npx http-server --port 4765 ./dist/ngx-sub-form-demo-e2e
start: yarn start-e2e-file-server
wait-on: http://localhost:4765/
wait-on-timeout: 500
- name: Deploy
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
"commit": "git add . && git-cz",
"readme:build": "embedme README.md && yarn run prettier README.md --write",
"readme:check": "yarn readme:build && ! git status | grep README.md || (echo 'You must commit build and commit changes to README.md!' && exit 1)",
"lint": "ng lint"
"lint": "ng lint",
"------------------------ CI ------------------------": "",
"start-e2e-file-server": "cp -r dist/ngx-sub-form-demo dist/ngx-sub-form-demo-e2e && sed -i 's/base href=\"https:\\/\\/cloudnc.github.io\\/ngx-sub-form\\/\"/base href=\"\\/\"/' dist/ngx-sub-form-demo-e2e/index.html && npx http-server --port 4765 ./dist/ngx-sub-form-demo-e2e"
},
"private": true,
"dependencies": {
Expand Down

0 comments on commit ddda44d

Please sign in to comment.