Skip to content

added github actions #1

added github actions

added github actions #1

Workflow file for this run

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/[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.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:
matrix:

Check failure on line 34 in .github/workflows/maven.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/maven.yml

Invalid workflow file

You have an error in your yaml syntax on line 34
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: 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: |
mvn -B package --file pom.xml
- 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