Skip to content

Commit

Permalink
test only j2cl-maven-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
treblereel committed Jun 27, 2024
1 parent f6599ab commit cc4074d
Showing 1 changed file with 11 additions and 58 deletions.
69 changes: 11 additions & 58 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -1,70 +1,23 @@
name: Build and test
on: [push, pull_request]
name: Java CI with Maven
on: [ push, pull_request, workflow_dispatch ]

jobs:
os-test:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Setup Chrome
uses: browser-actions/[email protected]
- 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'
runs-on: 'ubuntu-latest'
steps:
- name: Setup Chrome
uses: browser-actions/[email protected]
- name: Checkout
uses: actions/checkout@v3
- name: Set up Java ${{ matrix.java }}
uses: actions/setup-java@v4
- uses: actions/checkout@v4
- 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 }}
java-version: '17'
distribution: 'zulu'
- name: Build and test
run: |
bash build_test.sh
mvn -B install -f j2cl-maven-plugin/pom.xml
- name: Upload test results for review
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v2
if: always()
with:
name: test-results-mvn-v${{ matrix.mvn }}-jvm${{ matrix.java }}
name: test-results-mvn-v3.8.8-jvm17
path: |
target/build.log
retention-days: 5

0 comments on commit cc4074d

Please sign in to comment.