CI build #45
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
name: build | |
run-name: CI build | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- $default-branch | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
jdk-version: [11, 17] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Java JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.jdk-version }} | |
distribution: 'temurin' | |
- name: Initialize Ant | |
run: ./.github/scripts/init-ant.sh | |
- name: Run Ant Build | |
run: | | |
ant -version | |
ant -noinput -logger org.apache.tools.ant.NoBannerLogger clean build check | |
- name: Archive Test Results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: JUnit Test Results | |
path: build/reports/unittest | |
- name: Archive Code Coverage Report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Code Coverage Report | |
path: build/reports/coverage |