Skip to content

chore: Use client spec 5.1.5 instead of 5.0.2 (#242) #103

chore: Use client spec 5.1.5 instead of 5.0.2 (#242)

chore: Use client spec 5.1.5 instead of 5.0.2 (#242) #103

Workflow file for this run

name: Build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
version: [8,11]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.version }}
cache: 'maven'
distribution: 'temurin'
- name: Build, test, coverage
run: ./mvnw clean test jacoco:report coveralls:report
- name: Notify Slack of pipeline completion
uses: 8398a7/action-slack@v2
with:
status: ${{ job.status }}
author_name: Github Action
text: Build on Java ${{ matrix.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.slack_webhook }}
if: always()
java17:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'
- name: Build, test, coverage
run: ./mvnw clean test jacoco:report coveralls:report
env:
MAVEN_OPTS: "--add-opens java.base/java.net=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED"
- name: Notify Slack of pipeline completion
uses: 8398a7/action-slack@v2
with:
status: ${{ job.status }}
author_name: Github Action
text: Build on Java 17
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.slack_webhook }}
if: always()