Skip to content

Bump h2 from 2.1.210 to 2.2.220 #55

Bump h2 from 2.1.210 to 2.2.220

Bump h2 from 2.1.210 to 2.2.220 #55

Workflow file for this run

name: Java CI using Gradle and Nebula
on:
push:
branches:
- master
- release/*
pull_request:
branches:
- master
- release/*
jobs:
build:
runs-on: ubuntu-latest
# The GITHUB_TOKEN secret is set to an access token for the repository each time a job in a workflow begins.
# You should set the permissions for this access token in the workflow file to grant
# read access for the contents scope and write access for the packages scope.
permissions:
contents: write
packages: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v3
with:
# 0 indicates all history for all branches and tags
fetch-depth: "0"
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: git status
run: |
git status
git remote -v
- name: Build for PR
uses: gradle/gradle-build-action@v2
if: github.event_name == 'pull_request'
with:
arguments: build -Prelease.stage=final
- name: Add test report to PR checks
uses: dorny/test-reporter@v1
if: (success() || failure()) && github.event_name == 'pull_request'
with:
name: Tests report
path: ${{ github.workspace }}/build/test-results/test/*.xml
reporter: java-junit
- name: Add code coverage to PR
id: jacoco
uses: madrapps/jacoco-report@v1.3
if: github.event_name == 'pull_request'
with:
paths: ${{ github.workspace }}/build/reports/jacoco/test/jacocoTestReport.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 90
min-coverage-changed-files: 99
- name: Build, publish and tag release
uses: gradle/gradle-build-action@v2
if: github.event_name == 'push'
with:
arguments: build publish final -Prelease.stage=final
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# upload full test report (e.g. in case stdout / stderr is needed)
- name: Upload test report
uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: Tests report
path: ${{ github.workspace }}/build/reports/tests
retention-days: 1
- name: deploy new release
if: github.event_name == 'push'
run: scripts/deploy-latest.sh