chore: update to 24.1.4, add GH action workflow #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verify | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
permissions: | |
contents: read | |
defaults: | |
run: | |
shell: bash | |
concurrency: | |
group: ${{ github.head_ref || github.ref_name }} | |
cancel-in-progress: true | |
jobs: | |
verify: | |
strategy: | |
matrix: | |
os: [ubuntu, windows] | |
runs-on: ${{ matrix.os }}-latest | |
permissions: | |
# for EnricoMi/publish-unit-test-result-action | |
issues: read | |
checks: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Set TB License | |
run: | | |
TBL=${{ secrets.TB_LICENSE }} | |
[ -z "$TBL" ] && echo "No TB license provided" && exit 1 | |
mkdir -p ~/.vaadin/ | |
echo '{"username":"'`echo $TBL | cut -d / -f1`'","proKey":"'`echo $TBL | cut -d / -f2`'"}' > ~/.vaadin/proKey | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-maven- | |
- uses: browser-actions/setup-chrome@latest | |
with: | |
chrome-version: stable | |
- name: Verify | |
run: | | |
mvn -B -V -ntp verify -Dcom.vaadin.testbench.Parameters.headless | |
- name: Publish Test Results | |
if: matrix.os == 'ubuntu' | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
with: | |
files: "**/target/*-reports/TEST*.xml" | |
check_run_annotations: all tests, skipped tests |