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 коммит произвёл Matthieu Gallien
Родитель a91c96b174
Коммит bb09bc67fc
8 изменённых файлов: 10 добавлений и 46 удалений

4
.github/workflows/check-translations.yml поставляемый
Просмотреть файл

@ -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

5
.github/workflows/clang-tidy-review.yml поставляемый
Просмотреть файл

@ -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:

2
.github/workflows/fixup.yml поставляемый
Просмотреть файл

@ -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

25
.github/workflows/generates_locales.yml поставляемый
Просмотреть файл

@ -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

5
.github/workflows/macos-build-and-test.yml поставляемый
Просмотреть файл

@ -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

5
.github/workflows/qml-label-check.yml поставляемый
Просмотреть файл

@ -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

5
.github/workflows/sonarcloud.yml поставляемый
Просмотреть файл

@ -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:

Просмотреть файл

@ -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