Skip to content

Update dependencies (#41) #26

Update dependencies (#41)

Update dependencies (#41) #26

Workflow file for this run

name: "Continuous Build"
on:
push:
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
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 21
- 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/codecov-action@v2.1.0
if: ${{ matrix.coverage }}
publish-snapshots:
name: Publish snapshots
if: ${{ github.event_name == 'push' && github.repository == 'curioswitch/protobuf-jackson' }}
needs: build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 21
- uses: gradle/actions/setup-gradle@v4
- run: ./gradlew snapshot
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
MAVEN_GPG_PRIVATE_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
MAVEN_GPG_PUBLIC_KEY: ${{ secrets.MAVEN_GPG_PUBLIC_KEY }}