Skip to content

Merge pull request #182 from wildfly-extras/dependabot/maven/io.grpc-… #382

Merge pull request #182 from wildfly-extras/dependabot/maven/io.grpc-…

Merge pull request #182 from wildfly-extras/dependabot/maven/io.grpc-… #382

Workflow file for this run

name: Verify Codebase
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Verify Codebase
runs-on: ubuntu-latest
env:
MVN: ./mvnw --show-version --batch-mode
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Set up JDK
id: setup-jdk
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Install
id: install
run: $MVN install -Pexamples
format-check:
name: Check Code Formatting
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
cache: 'maven'
- name: Format Source
run: "mvn -B clean install -DskipTests formatter:format -Pexamples"
- name: Check for changes
run: |
[ -z "$(git status --porcelain=v1 2>/dev/null)" ] || (echo -e "::error ::Changes have been found\n$(git diff)" && exit 1)