Skip to content

Commit 562fb24

Browse files
committed
test workflow
1 parent a0e05db commit 562fb24

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

.github/workflows/validation.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Validation
2+
3+
on:
4+
push:
5+
# Change this when backporting to a maintenance branch
6+
branches: [v25]
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
# Change this when backporting to a maintenance branch
10+
branches: [v25]
11+
12+
concurrency:
13+
group: ${{ github.head_ref || github.ref_name }}
14+
cancel-in-progress: true
15+
16+
env:
17+
JAVA_VERSION: '21'
18+
NODE_VERSION: '24'
19+
MAVEN_VERSION: '3.8.7'
20+
21+
jobs:
22+
validation:
23+
name: Validation
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v5
27+
with:
28+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
29+
- uses: actions/setup-java@v5
30+
with:
31+
java-version: ${{ env.JAVA_VERSION }}
32+
distribution: 'temurin'
33+
cache: 'maven'
34+
- uses: stCarolas/setup-maven@v5
35+
with:
36+
maven-version: ${{ env.MAVEN_VERSION }}
37+
- uses: actions/setup-node@v5
38+
with:
39+
node-version: ${{ env.NODE_VERSION }}
40+
- name: Set TB License
41+
run: |
42+
TB_LICENSE=${{secrets.TB_LICENSE}}
43+
mkdir -p ~/.vaadin/
44+
echo '{"username":"'`echo $TB_LICENSE | cut -d / -f1`'","proKey":"'`echo $TB_LICENSE | cut -d / -f2`'"}' > ~/.vaadin/proKey
45+
- name: Verify
46+
run: mvn -B verify -Pit -Dcom.vaadin.testbench.Parameters.maxAttempts=2 -Dcom.vaadin.testbench.Parameters.headless=true
47+
- name: Publish test results
48+
if: ${{ always() }}
49+
uses: EnricoMi/publish-unit-test-result-action@v2
50+
with:
51+
files: '**/failsafe-reports/TEST-*.xml'

0 commit comments

Comments
 (0)