diff --git a/.appveyor.yml b/.appveyor.yml index 1af32a371e7af..6b3989de9a997 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -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/**' diff --git a/.github/workflows/CBA.yml b/.github/workflows/CBA.yml index 6a6f2a92c4c6d..6df7043cb1283 100644 --- a/.github/workflows/CBA.yml +++ b/.github/workflows/CBA.yml @@ -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: diff --git a/.github/workflows/astyle.yml b/.github/workflows/astyle.yml index eb055f4e16541..32823f1e09dbd 100644 --- a/.github/workflows/astyle.yml +++ b/.github/workflows/astyle.yml @@ -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 diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml index e566544190ac9..babbe5566b357 100644 --- a/.github/workflows/clang-tidy.yml +++ b/.github/workflows/clang-tidy.yml @@ -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: diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index 66fc922944f2a..5c8a5cf4ac6a8 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/flake8.yml @@ -4,9 +4,13 @@ on: push: branches: - master + paths: + - '**.py' pull_request: branches: - master + paths: + - '**.py' jobs: check: diff --git a/.github/workflows/json.yml b/.github/workflows/json.yml index 2c5a02aebd7c0..9bde670f6b1dd 100644 --- a/.github/workflows/json.yml +++ b/.github/workflows/json.yml @@ -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: diff --git a/.github/workflows/matrix.yml b/.github/workflows/matrix.yml index bca334a33ac60..323b6983d9051 100644 --- a/.github/workflows/matrix.yml +++ b/.github/workflows/matrix.yml @@ -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: diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml index a9c4d4feaf373..da10c15419ee3 100644 --- a/.github/workflows/translations.yml +++ b/.github/workflows/translations.yml @@ -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