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