Skip to content

Add Vertex support (#373) #1321

Add Vertex support (#373)

Add Vertex support (#373) #1321

name: 'Continuous Integration'
on:
push:
branches:
- main
- '*.x'
- 'codec-java/*.x'
paths-ignore:
- 'website/**'
- 'guides/**'
- 'docker/**'
- '**/*.md'
- 'CNAME'
- '.github/workflows/deploy-website.yml'
- '.github/workflows/website-ci.yml'
- '.github/workflows/translation.yml'
pull_request:
branches:
- main
- '*.x'
- 'codec-java/*.x'
types:
- opened
- reopened
- synchronize
- ready_for_review
paths-ignore:
- 'website/**'
- 'guides/**'
- 'docker/**'
- '**/*.md'
- 'CNAME'
- '.github/workflows/deploy-website.yml'
- '.github/workflows/website-ci.yml'
- '.github/workflows/translation.yml'
jobs:
build:
if: >
github.event_name == 'push' ||
(github.event_name == 'pull_request' && github.event.pull_request.draft == false)
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
with:
cache-read-only: false
- name: Build (Check, Compile, Test)
id: build
continue-on-error: true
run: ./gradlew spotlessCheck build
- name: Summarize Test Report
uses: dorny/test-reporter@v2
if: ${{ !cancelled() }}
with:
name: Test Report
path: '**/build/test-results/test/TEST-*.xml'
reporter: java-junit
- name: Fail job if build failed
if: ${{ steps.build.outcome == 'failure' }}
run: exit 1