File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Validation
2+
3+ on :
4+ pull_request :
5+ types : [opened, synchronize, reopened]
6+
7+ concurrency :
8+ group : ${{ github.head_ref || github.ref_name }}
9+ cancel-in-progress : true
10+
11+ env :
12+ JAVA_VERSION : ' 21'
13+ NODE_VERSION : ' 24'
14+ MAVEN_VERSION : ' 3.8.7'
15+
16+ jobs :
17+ validation :
18+ name : Validation
19+ runs-on : ubuntu-latest
20+ steps :
21+ - uses : actions/checkout@v5
22+ with :
23+ ref : ${{ github.event.pull_request.head.sha || github.sha }}
24+ - uses : actions/setup-java@v5
25+ with :
26+ java-version : ${{ env.JAVA_VERSION }}
27+ distribution : ' temurin'
28+ cache : ' maven'
29+ - uses : stCarolas/setup-maven@v5.1
30+ with :
31+ maven-version : ${{ env.MAVEN_VERSION }}
32+ - uses : actions/setup-node@v5
33+ with :
34+ node-version : ${{ env.NODE_VERSION }}
35+ - name : Set TB License
36+ run : |
37+ TB_LICENSE=${{secrets.TB_LICENSE}}
38+ mkdir -p ~/.vaadin/
39+ echo '{"username":"'`echo $TB_LICENSE | cut -d / -f1`'","proKey":"'`echo $TB_LICENSE | cut -d / -f2`'"}' > ~/.vaadin/proKey
40+ - name : Verify
41+ run : mvn -B -ntp verify -Pit -Dcom.vaadin.testbench.Parameters.maxAttempts=2 -Dcom.vaadin.testbench.Parameters.headless=true -Dheadless=true
42+ - name : Publish test results
43+ if : ${{ always() }}
44+ uses : EnricoMi/publish-unit-test-result-action@v2
45+ with :
46+ files : ' **/failsafe-reports/TEST-*.xml'
47+ - name : Upload test artifacts
48+ if : ${{ failure() }}
49+ uses : actions/upload-artifact@v4
50+ with :
51+ name : test-artifacts
52+ path : |
53+ **/failsafe-reports/
54+ error-screenshots/
You can’t perform that action at this time.
0 commit comments