From 229b2e3de099bee4a9c26f330f5354d378ccbe4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Carrasco=20Mo=C3=B1ino?= Date: Sun, 20 Oct 2024 09:54:40 +0200 Subject: [PATCH] chore: add validation (#367) --- .github/workflow/validate.yml | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflow/validate.yml diff --git a/.github/workflow/validate.yml b/.github/workflow/validate.yml new file mode 100644 index 0000000..c37753d --- /dev/null +++ b/.github/workflow/validate.yml @@ -0,0 +1,45 @@ +name: Validate +on: + push: + branches: [v24] + workflow_dispatch: + pull_request: +jobs: + validate: + runs-on: windows-latest + steps: + - run: | + # INSTALL LICENSE + mkdir -p ~/.vaadin/ + echo '{"username":"'`echo ${{secrets.TB_LICENSE}} | cut -d / -f1`'","proKey":"'`echo ${{secrets.TB_LICENSE}} | cut -d / -f2`'"}' > ~/.vaadin/proKey + echo "${{secrets.SS_LICENSE}}" > ~/vaadin.spreadsheet.developer.license + shell: bash + - uses: browser-actions/setup-chrome@latest + with: + chrome-version: stable + - uses: actions/setup-node@v4 + with: + node-version: '18' + - uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + - uses: stCarolas/setup-maven@v5 + with: + maven-version: '3.9.0' + - run: | + mvn -ntp -B clean install -Pproduction,it \ + -Dcom.vaadin.testbench.Parameters.testsInParallel=2 \ + -Dmaven.test.redirectTestOutputToFile=true \ + -Dcom.vaadin.testbench.Parameters.headless=true -Dheadless \ + -Dmaven.compiler.showDeprecation + env: + MAVEN_ARGS: ${{env.MAVEN_ARGS}} + shell: bash + - if: ${{failure()}} + uses: actions/upload-artifact@v3.1.1 + with: + name: failed-outputs + path: target + if-no-files-found: warn + retention-days: 7