Skip to content

Commit c644f8b

Browse files
committed
ci(actions): fix yaml
1 parent 64913db commit c644f8b

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,27 @@ on: [push, pull_request]
55
jobs:
66
test:
77
runs-on: ubuntu-latest
8+
container:
9+
image: raschidjfr/ionic-blank:ionic8-angular19-cypress14
810

911
steps:
1012
- 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'
13+
uses: actions/checkout@v4
1714

1815
- name: Install dependencies
1916
run: npm ci
2017

2118
- name: Build project
2219
run: npm run build -- -c production
2320

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; }"
21+
- name: Run tests
22+
working-directory: /app
23+
run: |
24+
mkdir cypress
25+
cp -r /cypress/* ./cypress
26+
cp /cypress.config.ts .
27+
cp -r /src/app/home/* ./src/app/home
28+
npm i dist/ionic-header-parallax-$(cd dist/ionic-header-parallax && npm pkg get version).tgz
29+
ng serve --host 0.0.0.0 --port 4200 &
30+
(wait-on http://0.0.0.0:4200 --timeout 30000 --interval 1000 && cypress run --headless) \
31+
|| { echo 'Angular server failed to start'; exit 1; }

0 commit comments

Comments
 (0)