mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 12:19:03 +03:00
19afb905c0
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
24 lines
773 B
YAML
24 lines
773 B
YAML
name: QML Label component check
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Run label component count
|
|
run: |
|
|
MATCHESRESULT=$(find . -iname "*.qml" | xargs grep -r -e "^\s*Label\s*[{]" | wc -l | sed "s/ //g")
|
|
echo "MATCHES=${MATCHESRESULT}" >> $GITHUB_ENV
|
|
echo "EXPECTED_MATCHES=1" >> $GITHUB_ENV
|
|
- name: Check label component use count
|
|
if: env.MATCHES != env.EXPECTED_MATCHES
|
|
uses: actions/github-script@v3
|
|
with:
|
|
script: |
|
|
core.setFailed('Using QML Labels! Make sure to use EnforcedPlainTextLabel instead!')
|