mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-24 15:43:54 -07:00
CI: More workflow paths updates (#6227)
* update trigger paths * change to include paths trigger pattern * refine selection * more paths * fix * revert push trigger and add hint
This commit is contained in:
parent
b6d04669a7
commit
0561286145
6 changed files with 17 additions and 11 deletions
7
.github/workflows/desktop-lint.yml
vendored
7
.github/workflows/desktop-lint.yml
vendored
|
|
@ -1,18 +1,19 @@
|
||||||
name: Code Style (C++)
|
name: Code Style (C++)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
# push trigger not needed for linting, we do not allow direct pushes to master
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- '*/**' # matches all files not in root
|
- '*/**' # matches all files not in root
|
||||||
- '!**.md'
|
- '!**.md'
|
||||||
- '!.ci/**'
|
- '!.ci/**'
|
||||||
- '!.github/**'
|
- '!.github/**'
|
||||||
- '!.husky'
|
- '!.husky/**'
|
||||||
- '!.tx'
|
- '!.tx/**'
|
||||||
- '!doc/**'
|
- '!doc/**'
|
||||||
- '!webclient/**'
|
- '!webclient/**'
|
||||||
- '.github/workflows/desktop-lint.yml'
|
|
||||||
- '.ci/lint_cpp.sh'
|
- '.ci/lint_cpp.sh'
|
||||||
|
- '.github/workflows/desktop-lint.yml'
|
||||||
- '.clang-format'
|
- '.clang-format'
|
||||||
- '.cmake-format.json'
|
- '.cmake-format.json'
|
||||||
- 'format.sh'
|
- 'format.sh'
|
||||||
|
|
|
||||||
1
.github/workflows/translations-pull.yml
vendored
1
.github/workflows/translations-pull.yml
vendored
|
|
@ -7,6 +7,7 @@ on:
|
||||||
- cron: '0 0 15 1,4,7,10 *'
|
- cron: '0 0 15 1,4,7,10 *'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
|
- '.tx/**'
|
||||||
- '.github/workflows/translations-pull.yml'
|
- '.github/workflows/translations-pull.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
|
||||||
1
.github/workflows/translations-push.yml
vendored
1
.github/workflows/translations-push.yml
vendored
|
|
@ -7,6 +7,7 @@ on:
|
||||||
- cron: '0 0 1 1,4,7,10 *'
|
- cron: '0 0 1 1,4,7,10 *'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
|
- '.ci/update_translation_source_strings.sh'
|
||||||
- '.github/workflows/translations-push.yml'
|
- '.github/workflows/translations-push.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
|
||||||
6
.github/workflows/web-build.yml
vendored
6
.github/workflows/web-build.yml
vendored
|
|
@ -5,14 +5,16 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/web-*.yml'
|
- '.husky/**'
|
||||||
- 'webclient/**'
|
- 'webclient/**'
|
||||||
- '!**.md'
|
- '!**.md'
|
||||||
|
- '.github/workflows/web-build.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/web-*.yml'
|
- '.husky/**'
|
||||||
- 'webclient/**'
|
- 'webclient/**'
|
||||||
- '!**.md'
|
- '!**.md'
|
||||||
|
- '.github/workflows/web-build.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-web:
|
build-web:
|
||||||
|
|
|
||||||
3
.github/workflows/web-lint.yml
vendored
3
.github/workflows/web-lint.yml
vendored
|
|
@ -1,11 +1,12 @@
|
||||||
name: Code Style (TypeScript)
|
name: Code Style (TypeScript)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
# push trigger not needed for linting, we do not allow direct pushes to master
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/web-*.yml'
|
|
||||||
- 'webclient/**'
|
- 'webclient/**'
|
||||||
- '!**.md'
|
- '!**.md'
|
||||||
|
- '.github/workflows/web-lint.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ESLint:
|
ESLint:
|
||||||
|
|
|
||||||
10
format.sh
10
format.sh
|
|
@ -12,18 +12,18 @@ olddir="$PWD"
|
||||||
cd "${BASH_SOURCE%/*}/" || exit 2 # could not find path, this could happen with special links etc.
|
cd "${BASH_SOURCE%/*}/" || exit 2 # could not find path, this could happen with special links etc.
|
||||||
|
|
||||||
# defaults
|
# defaults
|
||||||
include=("common" \
|
include=("cockatrice/src" \
|
||||||
"cockatrice/src" \
|
"common" \
|
||||||
"dbconverter/src" \
|
"dbconverter/src" \
|
||||||
"oracle/src" \
|
"oracle/src" \
|
||||||
"servatrice/src" \
|
"servatrice/src" \
|
||||||
"tests")
|
"tests")
|
||||||
exclude=("servatrice/src/smtp" \
|
exclude=("common/sfmt" \
|
||||||
"common/sfmt" \
|
|
||||||
"common/lib" \
|
"common/lib" \
|
||||||
"oracle/src/zip" \
|
"oracle/src/zip" \
|
||||||
"oracle/src/lzma" \
|
"oracle/src/lzma" \
|
||||||
"oracle/src/qt-json")
|
"oracle/src/qt-json" \
|
||||||
|
"servatrice/src/smtp")
|
||||||
exts=("cpp" "h" "proto")
|
exts=("cpp" "h" "proto")
|
||||||
cf_cmd="clang-format"
|
cf_cmd="clang-format"
|
||||||
branch="origin/master"
|
branch="origin/master"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue