Skip to content

fix(ci): reuse Clang build for clang-tidy #9335

fix(ci): reuse Clang build for clang-tidy

fix(ci): reuse Clang build for clang-tidy #9335

# SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: GPL-2.0-or-later
name: Check translations
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
# Declare default permissions as read only.
permissions: read-all
jobs:
checkGermanTranslations:
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Check German
run: |
[[ $(grep "Benötigt keine Übersetzung" translations/client_de.ts -c) -gt 0 ]] && exit 1 || exit 0
checkTranslations:
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
container: ghcr.io/nextcloud/continuous-integration-translations-desktop:latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Check Elipsis
run: |
lupdate -no-obsolete src/gui/ src/cmd/ src/common/ $crashreporter src/csync/ src/libsync/ $resources -ts ../ci-client.ts
if [ $(grep '\.\.\.' ../ci-client.ts | wc -l) -ne 0 ]; then
echo "English source contains three consecutive dots. Unicode … should be used instead"
exit -1
fi