Implement ItemStreamIteratorReaderAdapter #254
Workflow file for this run
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 | |
on: | |
push: | |
branches: [ main, '[1-9]+.[0-9]+.x' ] | |
pull_request: | |
branches: [ main, '[1-9]+.[0-9]+.x' ] | |
workflow_dispatch: | |
inputs: | |
commit_id: | |
description: 'Git commit id' | |
required: true | |
jobs: | |
build: | |
name: Gradle build on JDK ${{ matrix.java-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java-version: [ '17', '21' ] | |
steps: | |
- name: Setup Commit ID | |
run: | | |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then | |
echo "COMMIT_ID=${{ github.event.inputs.commit_id }}" >> ${GITHUB_ENV} | |
else | |
echo "COMMIT_ID=${{ github.sha }}" >> ${GITHUB_ENV} | |
fi | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ env.COMMIT_ID }} | |
fetch-depth: 0 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java-version }} | |
cache: 'gradle' | |
- name: Run check | |
run: ./gradlew clean build | |
- name: Check coverage | |
run: ./gradlew koverMergedVerify | |
- name: Merge coverage reports | |
run: ./gradlew koverMergedReport | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
if: ${{ matrix.java-version == '17' && github.ref == 'refs/heads/main' }} | |
with: | |
files: ./build/kover/result.xml |