From c9120782e6369696933b3adca02b54a332b7b542 Mon Sep 17 00:00:00 2001 From: Dmitrii Tikhomirov Date: Sun, 23 Jun 2024 23:40:34 -0700 Subject: [PATCH 1/2] added github actions --- .github/workflows/maven.yml | 68 +++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000000..76c31a7413 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,68 @@ +jobs: + os-test: + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + steps: + - name: Setup Chrome + uses: browser-actions/setup-chrome@v1.2.3 + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Java 11 + uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'temurin' + - name: Build and test + run: | + bash build_test.sh + - name: Upload test results for review + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-results-${{ runner.os }}-mvn-v${{ matrix.mvn }}-jvm${{ matrix.java }} + path: | + target/build.log + retention-days: 5 + + maven-version-test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + mvn: ['3.9.8' '3.8.8', '3.6.3'] + java: ['11'] + include: + - mvn: '3.9.8' + java: '21' + - mvn: '3.8.8' + java: '17' + - mvn: '3.6.3' + java: '11' + steps: + - name: Setup Chrome + uses: browser-actions/setup-chrome@v1.2.3 + - name: Checkout + uses: actions/checkout@v3 + - name: Set up Java ${{ matrix.java }} + uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + - name: Set up maven wrapper for specified version + run: | + mvn wrapper:wrapper -Dmaven=${{ matrix.mvn }} + - name: Build and test + run: | + bash build_test.sh + - name: Upload test results for review + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-results-mvn-v${{ matrix.mvn }}-jvm${{ matrix.java }} + path: | + target/build.log + retention-days: 5 From e858e78c65f1dbad21d9d409280419a08ad65529 Mon Sep 17 00:00:00 2001 From: Dmitrii Tikhomirov Date: Sun, 23 Jun 2024 23:59:13 -0700 Subject: [PATCH 2/2] remove windows atm --- .github/workflows/maven.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 76c31a7413..b28fbcd0c5 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -5,7 +5,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + os: [ubuntu-latest, macos-latest] steps: - name: Setup Chrome uses: browser-actions/setup-chrome@v1.2.3 @@ -18,7 +18,7 @@ jobs: distribution: 'temurin' - name: Build and test run: | - bash build_test.sh + sh build_test.sh - name: Upload test results for review uses: actions/upload-artifact@v4 if: always() @@ -57,7 +57,7 @@ jobs: mvn wrapper:wrapper -Dmaven=${{ matrix.mvn }} - name: Build and test run: | - bash build_test.sh + sh build_test.sh - name: Upload test results for review uses: actions/upload-artifact@v4 if: always()