File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Run Tests
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ test :
7+ runs-on : ubuntu-latest
8+
9+ steps :
10+ - name : Checkout repository
11+ uses : actions/checkout@v3
12+
13+ - name : Set up Node.js
14+ uses : actions/setup-node@v3
15+ with :
16+ node-version : ' 20'
17+
18+ - name : Install dependencies
19+ run : npm ci
20+
21+ - name : Build project
22+ run : npm run build -- -c production
23+
24+ - name : Run tests in Docker
25+ uses : docker://raschidjfr/ionic-blank:ionic8-angular19-cypress14
26+ with :
27+ args : bash -c "\
28+ mkdir cypress \
29+ && cp -r /github/workspace/cypress/* ./cypress \
30+ && cp /github/workspace/cypress.config.ts . \
31+ && cp -r /github/workspace/src/app/home/* ./src/app/home \
32+ && npm i /github/workspace/dist/ionic-header-parallax-$(cd /github/workspace/dist/ionic-header-parallax && npm pkg get version).tgz \
33+ && ng serve --host 0.0.0.0 --port 4200 \
34+ & (wait-on http://0.0.0.0:4200 --timeout 30000 --interval 1000 && cypress run --headless) \
35+ || { echo 'Angular server failed to start'; exit 1; }"
You can’t perform that action at this time.
0 commit comments