Debian Codegraph @

install/freeipa-webui/.github/workflows/integration_tests.yaml

raw
1 ---
2 name: Integration tests
3
4 on:
5 pull_request:
6 push:
7 branches: [main]
8
9 jobs:
10 integration-tests:
11 name: Integration tests
12 runs-on: ubuntu-latest
13
14 steps:
15 - name: Checkout repository
16 uses: actions/checkout@v4
17
18 - name: Setup Node.js
19 uses: actions/setup-node@v4
20 with:
21 node-version: "22"
22
23 - name: Install dependencies
24 run: npm clean-install
25
26 - name: Add IPA Server's IP to /etc/hosts
27 run: cat developer/scenarios/single-server/hosts | sudo tee -a /etc/hosts
28
29 - name: Start testing container
30 run: developer/dev-env.sh -s
31
32 - name: Build webui
33 run: developer/dev-env.sh -p
34
35 - name: Run integration tests
36 run: developer/dev-env.sh -c
37
38 - name: Upload cypress screenshots
39 uses: actions/upload-artifact@v4
40 if: failure()
41 with:
42 name: cypress-screenshots
43 path: cypress/screenshots
44
45 - name: Upload cypress videos
46 uses: actions/upload-artifact@v4
47 if: failure()
48 with:
49 name: cypress-videos
50 path: cypress/videos