Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
30 lines
783 B
YAML
30 lines
783 B
YAML
name: Language test.
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'Telegram/Resources/langs/rewrites/*.json'
|
|
- '.github/workflows/language-test.yml'
|
|
pull_request:
|
|
paths:
|
|
- 'Telegram/Resources/langs/rewrites/*.json'
|
|
- '.github/workflows/language-test.yml'
|
|
|
|
jobs:
|
|
test:
|
|
name: Test languages
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Clone
|
|
uses: actions/checkout@v4
|
|
- name: Trim comments
|
|
shell: bash
|
|
run: sed -i -e 's/^\s*\/\/.*$//' Telegram/Resources/langs/rewrites/*.json
|
|
- name: Test JSON for validity
|
|
shell: bash
|
|
run: |
|
|
for f in Telegram/Resources/langs/rewrites/*.json; do
|
|
echo "::group::Testing $f"
|
|
cat "$f" | jq -e '.'
|
|
echo "::endgroup::"
|
|
done
|