Skip to content

Commit 3cbd0d9

Browse files
committed
fix: add TestBench license setup to unit-tests job
Unit tests also require the TestBench Pro license to run. Add the TB License configuration step to the unit-tests job, similar to the integration-tests job. Without this, unit tests that validate TestBench Pro features would fail due to missing license configuration.
1 parent fd80173 commit 3cbd0d9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/validation.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ jobs:
9999
path: ~/.m2/repository
100100
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ github.run_id }}
101101

102+
- name: Set TB License
103+
run: |
104+
TB_LICENSE=${{secrets.TB_LICENSE}}
105+
mkdir -p ~/.vaadin/
106+
echo '{"username":"'`echo $TB_LICENSE | cut -d / -f1`'","proKey":"'`echo $TB_LICENSE | cut -d / -f2`'"}' > ~/.vaadin/proKey
107+
102108
- name: Run unit tests
103109
run: |
104110
mvn test -B

0 commit comments

Comments
 (0)