Skip to content

Bump org.robolectric:robolectric from 4.14 to 4.14.1 in /snippets in … #26

Bump org.robolectric:robolectric from 4.14 to 4.14.1 in /snippets in …

Bump org.robolectric:robolectric from 4.14 to 4.14.1 in /snippets in … #26

name: "Validate snippets"
on:
pull_request:
paths:
- "snippets/**"
push:
branches: [ master ]
paths:
- "snippets/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
validate_snippets:
name: "Validate snippets"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
sparse-checkout: |
snippets
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Check codestyle
uses: axel-op/googlejavaformat-action@v3
with:
args: "--replace"
files: snippets/**/*.java
skip-commit: true
- name: Print codestyle issues
run: git --no-pager diff --exit-code
- name: Build
run: |
cd snippets
./gradlew check