more it tests #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build maven project and run tests. This currently runs on all commits to pull requests and branches, and must not | |
# use any secrets or attempt to deploy, but only verify the build. | |
name: Build and test | |
on: [push, pull_request] | |
jobs: | |
os-test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Java 11 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
- name: Build and test | |
run: | | |
mvn --batch-mode org.apache.maven.plugins:maven-dependency-plugin:3.2.0:go-offline | |
mvn --batch-mode install '-Dinvoker.timeoutInSeconds=300' | |
- name: Upload test results for review | |
uses: actions/upload-artifact@v2 | |
if: always() | |
with: | |
name: test-results-${{ matrix.os }} | |
path: | | |
j2cl-maven-plugin/target/it-tests/*/build.log | |
*/target/surefire-reports/ | |
retention-days: 5 | |
maven-version-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
mvn: ['3.8.6', '3.6.3', '3.5.4', '3.3.9', '3.2.5'] | |
java: ['11'] | |
# include: # Confirm that old java works in the oldest maven, and that newest maven supports 8-current | |
# #TODO j2clmavenplugin#159 - re-enable this when the integration tests run cleanly in Java 17+ | |
# - mvn: '3.8.6' | |
# java: '17' | |
# - mvn: '3.8.6' | |
# java: '18' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Java ${{ matrix.java }} | |
uses: actions/setup-java@v2 | |
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: | | |
./mvnw --batch-mode org.apache.maven.plugins:maven-dependency-plugin:3.2.0:go-offline | |
./mvnw --batch-mode install '-Dinvoker.timeoutInSeconds=300' | |
- name: Upload test results for review | |
uses: actions/upload-artifact@v2 | |
if: always() | |
with: | |
name: test-results-mvn-v${{ matrix.mvn }}-jvm${{ matrix.java }} | |
path: | | |
j2cl-maven-plugin/target/it-tests/*/build.log | |
*/target/surefire-reports/ | |
retention-days: 5 |