Repository navigation
93 lines (86 loc) · 2.53 KB
/
Copy pathci.yml
File metadata and controls
93 lines (86 loc) · 2.53 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: CI
on:
push:
branches: [master]
pull_request:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
VRT_APIURL: http://localhost:4200
VRT_APIKEY: DEFAULTUSERAPIKEYTOBECHANGED
VRT_PROJECT: Default project
VRT_BRANCHNAME: master
VRT_ENABLESOFTASSERT: "true"
jobs:
maven:
name: ${{ matrix.example }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
example: [playwright, selenium-maven]
defaults:
run:
working-directory: ${{ matrix.example }}
steps:
- uses: actions/checkout@v7
- name: Start Visual Regression Tracker
working-directory: .github/vrt
run: docker compose up -d --quiet-pull
- uses: actions/setup-java@v6
with:
distribution: temurin
java-version: 17
cache: maven
cache-dependency-path: ${{ matrix.example }}/pom.xml
- run: mvn -B test-compile
- name: Wait for Visual Regression Tracker
run: timeout 180 bash -c 'until curl -s -o /dev/null http://localhost:4200; do sleep 2; done'
- run: mvn -B test
gradle:
name: ${{ matrix.example }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
example: [selenide-gradle]
defaults:
run:
working-directory: ${{ matrix.example }}
steps:
- uses: actions/checkout@v7
- name: Start Visual Regression Tracker
working-directory: .github/vrt
run: docker compose up -d --quiet-pull
- uses: actions/setup-java@v6
with:
distribution: temurin
java-version: 17
- uses: gradle/actions/setup-gradle@v6
- run: ./gradlew testClasses
- name: Wait for Visual Regression Tracker
run: timeout 180 bash -c 'until curl -s -o /dev/null http://localhost:4200; do sleep 2; done'
- run: ./gradlew test
# Appium needs an iOS simulator and the standalone client a folder of images, so CI only compiles them.
compile:
name: ${{ matrix.example }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
example: [appium-maven, standalone-from-folder-maven]
defaults:
run:
working-directory: ${{ matrix.example }}
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v6
with:
distribution: temurin
java-version: 17
cache: maven
cache-dependency-path: ${{ matrix.example }}/pom.xml
- run: mvn -B test-compile