Skip to content

Allow lint task to be configured after Buf v1.31.0 while using protobuf-gradle-plugin #344

Allow lint task to be configured after Buf v1.31.0 while using protobuf-gradle-plugin

Allow lint task to be configured after Buf v1.31.0 while using protobuf-gradle-plugin #344

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
workflow_dispatch: {} # support manual runs
permissions:
contents: read
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
permissions:
checks: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
check-latest: true
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build
run: ./gradlew build --info
- name: Publish unit test results (Ubuntu)
uses: EnricoMi/publish-unit-test-result-action@v2
if: always() && matrix.os == 'ubuntu-latest'
with:
files: "**/test-results/**/*.xml"
comment_mode: off
check_name: "Test Results (Ubuntu)"
- name: Publish unit test results (Windows)
uses: EnricoMi/publish-unit-test-result-action/windows@v2
if: always() && matrix.os == 'windows-latest'
with:
files: "**/test-results/**/*.xml"
comment_mode: off
check_name: "Test Results (Windows)"
- name: Publish unit test results (MacOS)
uses: EnricoMi/publish-unit-test-result-action/macos@v2
if: always() && matrix.os == 'macos-latest'
with:
files: "**/test-results/**/*.xml"
comment_mode: off
check_name: "Test Results (MacOS)"