name: Check Translations

on:
  push:
    paths:
      - '**.properties'
  pull_request:
    paths:
      - '**.properties'

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Set up JDK 11
        uses: actions/setup-java@v4
        with:
          distribution: 'zulu'
          java-version: '11'
          java-package: 'jdk+fx'
      - name: Check style test
        run: ./gradlew checkTranslations --no-daemon
