Skip to content

Commit ddda44d

Browse files
committed
chore(CI): move the command to start the server into an npm script as otherwise it gets all interpreted as an ls argument
https://github.com/cloudnc/ngx-sub-form/actions/runs/3658909405/jobs/6184280275
1 parent 254c212 commit ddda44d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
uses: cypress-io/github-action@v5
3939
with:
4040
browser: chrome
41-
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
41+
start: yarn start-e2e-file-server
4242
wait-on: http://localhost:4765/
4343
wait-on-timeout: 500
4444
- name: Deploy

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
"commit": "git add . && git-cz",
3333
"readme:build": "embedme README.md && yarn run prettier README.md --write",
3434
"readme:check": "yarn readme:build && ! git status | grep README.md || (echo 'You must commit build and commit changes to README.md!' && exit 1)",
35-
"lint": "ng lint"
35+
"lint": "ng lint",
36+
"------------------------ CI ------------------------": "",
37+
"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"
3638
},
3739
"private": true,
3840
"dependencies": {

0 commit comments

Comments
 (0)