-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.28 KB
/
lang_checks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Language File Checks
on:
push:
paths:
- '**/resources/assets/*/lang/*.lang'
pull_request:
paths:
- '**/resources/assets/*/lang/*.lang'
workflow_dispatch:
env:
GRADLE_OPTS: >-
-Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
GRADLE_CMD_OPTS: >-
-PbranchName="${{ github.ref }}"
--console=plain
--continue
--no-build-cache
--no-daemon
--parallel
jobs:
checkTranslations:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-java@v1
with:
java-version: 8
java-package: jdk
architecture: x64
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Check code formatting
run: ./gradlew ${{ env.GRADLE_CMD_OPTS }} checkTranslations
- name: Print checkTranslations report files
if: failure()
run: tail -n +1 *.lang.txt
#- name: Publish Language File Checks
# if: success() || failure()
# uses: actions/upload-artifact@v2
# with:
# name: checkTranslations
# path: '**.lang.txt'