Skip to content

Commit

Permalink
chore: use bun in GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollovati committed Sep 28, 2024
1 parent 5ac3404 commit 121796a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,15 @@ jobs:
if: ${{ !vars.QH_DISABLE_CHROME_INSTALL }}
with:
chrome-version: stable
- uses: oven-sh/setup-bun@v1
- name: Build
run: |
set -x -e -o pipefail
mvn -V -e -B -ntp -DskipTests -Dmaven.javadoc.skip=false install
mvn -V -e -B -ntp -DskipTests -Dvaadin.useBun=true -Dmaven.javadoc.skip=false install
- name: Test
run: |
set -x -e -o pipefail
mvn -V -e -B -ntp verify -Dmaven.javadoc.skip=false -DtrimStackTrace=false
mvn -V -e -B -ntp verify -Dvaadin.useBun=true -Dmaven.javadoc.skip=false -DtrimStackTrace=false
- name: Package test output files
if: ${{ failure() || success() }}
run: find . -name surefire-reports -o -name failsafe-reports -o -name selenide-reports | tar -czf tests-report-main.tgz -T -
Expand Down Expand Up @@ -108,14 +109,15 @@ jobs:
if: ${{ !vars.QH_DISABLE_CHROME_INSTALL }}
with:
chrome-version: stable
- uses: oven-sh/setup-bun@v1
- name: Build
run: |
set -x -e -o pipefail
mvn -V -e -B -ntp -DskipTests -Dmaven.javadoc.skip=false install
mvn -V -e -B -ntp -Dvaadin.useBun=true -DskipTests -Dmaven.javadoc.skip=false install
- name: End-to-end Test (Development mode)
run: |
set -x -e -o pipefail
mvn -V -e -B -ntp verify -Dmaven.javadoc.skip=false -DtrimStackTrace=false -Dselenide.browserBinary=${{ steps.setup-chrome.outputs.chrome-path }} -Pit-tests
mvn -V -e -B -ntp verify -Dvaadin.useBun=true -Dmaven.javadoc.skip=false -DtrimStackTrace=false -Dselenide.browserBinary=${{ steps.setup-chrome.outputs.chrome-path }} -Pit-tests
- name: Package test output files
if: ${{ failure() || success() }}
run: find . -name surefire-reports -o -name failsafe-reports -o -name selenide-reports | tar -czf tests-report-e2e-dev.tgz -T -
Expand Down Expand Up @@ -146,14 +148,15 @@ jobs:
if: ${{ !vars.QH_DISABLE_CHROME_INSTALL }}
with:
chrome-version: stable
- uses: oven-sh/setup-bun@v1
- name: Build
run: |
set -x -e -o pipefail
mvn -V -e -B -ntp -DskipTests -Dmaven.javadoc.skip=false install
mvn -V -e -B -ntp -Dvaadin.useBun=true -DskipTests -Dmaven.javadoc.skip=false install
- name: End-to-end Test (Production mode)
run: |
set -x -e -o pipefail
mvn -V -e -B -ntp verify -Dmaven.javadoc.skip=false -DtrimStackTrace=false -Dselenide.browserBinary=${{ steps.setup-chrome.outputs.chrome-path }} -Pit-tests,production
mvn -V -e -B -ntp verify -Dvaadin.useBun=true -Dmaven.javadoc.skip=false -DtrimStackTrace=false -Dselenide.browserBinary=${{ steps.setup-chrome.outputs.chrome-path }} -Pit-tests,production
- name: Package test output files
if: ${{ failure() || success() }}
run: find . -name surefire-reports -o -name failsafe-reports -o -name selenide-reports | tar -czf tests-report-e2e-prod.tgz -T -
Expand Down
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<vaadin.useBun>false</vaadin.useBun>

<quarkus.version>3.15.1</quarkus.version>
<!--
Expand Down Expand Up @@ -123,6 +124,9 @@
<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<version>${vaadin.version}</version>
<configuration>
<bunEnable>${vaadin.useBun}</bunEnable>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
Expand Down

0 comments on commit 121796a

Please sign in to comment.