-
Notifications
You must be signed in to change notification settings - Fork 6
76 lines (72 loc) · 2.16 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: CI
on:
push:
paths-ignore:
- 'README.md'
branches-ignore:
- 'dependabot/**'
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
build-on-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@v3
with:
arguments: build
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Create tests execution report for all test projects
run: ./test-projects.sh test createTestsExecutionReport
- name: Check reports were created
run: ./test-projects.sh checkReports
- name: Create HTML report for regression tests
uses: gradle/gradle-build-action@v3
with:
arguments: createRegressionHtmlReport
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
working-directory: src/visual-regression
- name: Install Playwright Browsers
run: npx playwright install --with-deps
working-directory: src/visual-regression
- name: Run Playwright tests with Percy
run: npx percy exec -- npx playwright test
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
working-directory: src/visual-regression
build-on-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@v3
with:
arguments: build -i
- name: Create tests execution report for all test projects
run: ./test-projects.ps1 test createTestsExecutionReport
- name: Check reports were created
run: ./test-projects.ps1 checkReports
- name: Create HTML report for regression tests
uses: gradle/gradle-build-action@v3
with:
arguments: createRegressionHtmlReport