Skip to content

Commit

Permalink
Only run workflow actions for relevant changes (#46272)
Browse files Browse the repository at this point in the history
  • Loading branch information
int-ua authored Dec 27, 2020
1 parent 1273624 commit a05173d
Show file tree
Hide file tree
Showing 8 changed files with 75 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ build:
verbosity: minimal
test_script:
- cmd: Cataclysm-test-vcpkg-static-Release-x64.exe --rng-seed time --min-duration 0.2
skip_commits:
files:
- 'doc/**'
- 'lgtm/**'
- 'tools/**'
- '.github/**'
17 changes: 17 additions & 0 deletions .github/workflows/CBA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,26 @@ on:
push:
branches:
- master
paths:
- '**.cpp'
- '**.h'
- '**.c'
- '**/CMakeLists.txt'
- '**/Makefile'
- '**.hpp'
- '**.cmake'
pull_request:
branches:
- master
paths:
- '**.cpp'
- '**.h'
- '**.c'
- '**/CMakeLists.txt'
- '**/Makefile'
- '**.hpp'
- '**.cmake'


jobs:
build:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/astyle.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: astyle

on:
pull_request
pull_request:
paths:
- '**.cpp'
- '**.h'
- '**.c'

jobs:
style-json:
astyle-code:
name: astyle check

runs-on: ubuntu-latest
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,25 @@ on:
push:
branches:
- master
paths:
- '**.cpp'
- '**.h'
- '**.c'
- '**/CMakeLists.txt'
- '**/Makefile'
- '**.hpp'
- '**.cmake'
pull_request:
branches:
- master
paths:
- '**.cpp'
- '**.h'
- '**.c'
- '**/CMakeLists.txt'
- '**/Makefile'
- '**.hpp'
- '**.cmake'

jobs:
build:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ on:
push:
branches:
- master
paths:
- '**.py'
pull_request:
branches:
- master
paths:
- '**.py'

jobs:
check:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/json.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
name: JSON Validation

on:
pull_request
pull_request:
paths:
- '**.json'

jobs:
style-json:
name: JSON style check

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
with:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,18 @@ on:
push:
branches:
- master
paths-ignore:
- 'doc/**'
- 'lgtm/**'
- 'tools/**'
pull_request:
branches:
- master
paths-ignore:
- 'doc/**'
- 'lgtm/**'
- 'tools/**'


jobs:
varied_builds:
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/translations.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
name: "Push translation template"

on:
push:
branches:
- master
name: "Push translation template"
paths:
- '**.json'
- 'src/**.cpp'
- 'src/**.h'
- 'lang/extract_json_strings.py'
- 'lang/strip_line_numbers.py'
- 'lang/update_pot.sh'
- 'lang/unicode_check.py'


jobs:
push-template:
runs-on: ubuntu-20.04
Expand Down

0 comments on commit a05173d

Please sign in to comment.