Skip to content

Add compatibility with latest protobuf #37

Add compatibility with latest protobuf

Add compatibility with latest protobuf #37

Workflow file for this run

name: "PR Build"
on:
pull_request:
branches:
- main
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
test-java-version:
- 8
- 11
- 17
- 21
protobuf-version:
- '' # Use from source code
include:
- os: ubuntu-latest
test-java-version: 21
protobuf-version: 3.18.0
- os: ubuntu-latest
test-java-version: 21
coverage: true
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- id: setup-java-17
name: Setup Java 17
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 17
- uses: gradle/actions/setup-gradle@v4
- name: Run Tests
run: |
./gradlew build ${{ matrix.coverage && 'jacocoTestReport' || '' }} -PtestJavaVersion=${{ matrix.test-java-version }}
env:
PROTOBUF_VERSION: ${{ matrix.protobuf-version }}
- uses: codecov/[email protected]
if: ${{ matrix.coverage }}