improve names of CI checks and do not run them on merges to master

not convinced it is needed to run the checks after a merge to master
branch in addition to running them before merging a PR

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2023-09-25 11:19:22 +02:00 committed by Matthieu Gallien
parent a91c96b174
commit bb09bc67fc
8 changed files with 10 additions and 46 deletions

View File

@ -1,8 +1,8 @@
name: "Check translations"
name: Check translations
on:
pull_request:
branches: [ master, stable-* ]
types: [opened, synchronize, reopened]
# Declare default permissions as read only.
permissions: read-all

View File

@ -1,7 +1,8 @@
name: clang-tidy-review
# You can be more specific, but it currently only works on pull requests
on: [pull_request]
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
clang-tidy:

View File

@ -7,7 +7,7 @@ name: Block fixup and squash commits
on:
pull_request:
types: [opened, ready_for_review, reopened, synchronize]
types: [opened, synchronize, reopened]
permissions:
contents: read

View File

@ -1,25 +0,0 @@
name: L10n
on:
push:
branches:
- master
paths:
- 'doc/**'
- '!doc/locale/**'
jobs:
generates_locales:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ammaraskar/sphinx-action@master
with:
docs-folder: "doc/"
pre-build-command: pip install -r requirements.txt
build-command: make gettext
- uses: actions/checkout@v2
- name: Commit report
run: |
git config --global user.name 'Nextcloud Bot'
git config --global user.email 'bot@nextcloud.com'
git commit -am "Updates catalog templates (POT files fetched automatically by transifex)"
git push

View File

@ -1,13 +1,10 @@
name: macOS Build and Test
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build
name: macOS Build and Test
runs-on: macos-latest
env:
CRAFT_TARGET: macos-64-clang

View File

@ -1,13 +1,10 @@
name: QML Label component check
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build
name: QML Label component check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

View File

@ -1,13 +1,10 @@
name: SonarCloud analysis
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build
name: SonarCloud analysis
runs-on: ubuntu-22.04
container: ghcr.io/nextcloud/continuous-integration-client:client-5.15-14
env:

View File

@ -1,13 +1,10 @@
name: Windows Build and Test
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build
name: Windows Build and Test
runs-on: windows-2019
env:
CRAFT_TARGET: windows-msvc2019_64-cl