-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (45 loc) · 1.45 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Kata E2E UUV CI
on:
push:
branches: [ "**" ]
env:
NODE_VERSION: 18.14.0
jobs:
test-e2e:
runs-on: ubuntu-latest
container:
image: cypress/browsers:node18.12.0-chrome107
environment:
name: production
url: https://e2e-test-quest.github.io/kata-e2e-uuv/${{ github.ref == 'refs/heads/main' && '/' || github.ref_name }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{env.NODE_VERSION}}
uses: actions/setup-node@v4
with:
node-version: ${{env.NODE_VERSION}}
- name: Install Dependencies
run: npm ci
shell: bash
- name: Run E2E tests
run: npx uuv e2e --generateHtmlReport --generateJunitReport
shell: bash
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Report - E2E Tests
path: uuv/reports/e2e/junit-report.xml
reporter: java-junit
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: uuv-test-report
path: ./uuv/reports/e2e/html/
- name: Deploy to Github page
if: ${{ always() }}
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./uuv/reports/e2e/html/
destination_dir: ${{ github.ref == 'refs/heads/main' && '.' || github.ref_name }}