diff --git a/.github/workflows/cs.yml b/.github/workflows/cs.yml index a7c8c8b..441ed93 100644 --- a/.github/workflows/cs.yml +++ b/.github/workflows/cs.yml @@ -1,9 +1,27 @@ name: CS on: - # Run on all pushes and on all pull requests. + # Run on all relevant pushes and on all relevant pull requests. push: + paths-ignore: + - '**.md' + - '.gitattributes' + - '.gitignore' + - 'LICENSE' + - 'phpunit.xml.dist' + - '.github/dependabot.yml' + - '.github/workflows/test.yml' + - 'images/**' pull_request: + paths-ignore: + - '**.md' + - '.gitattributes' + - '.gitignore' + - 'LICENSE' + - 'phpunit.xml.dist' + - '.github/dependabot.yml' + - '.github/workflows/test.yml' + - 'images/**' # Allow manually triggering the workflow. workflow_dispatch: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 761c82b..7304f6b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,13 +1,31 @@ name: Test on: - # Run on pushes to `main` and on all pull requests. + # Run on relevant pushes to `main` and on all relevant pull requests. push: branches: - main paths-ignore: - '**.md' + - '.gitattributes' + - '.gitignore' + - 'LICENSE' + - '.phpcs.xml.dist' + - 'phpcs.xml.dist' + - '.github/dependabot.yml' + - '.github/workflows/cs.yml' + - 'images/**' pull_request: + paths-ignore: + - '**.md' + - '.gitattributes' + - '.gitignore' + - 'LICENSE' + - '.phpcs.xml.dist' + - 'phpcs.xml.dist' + - '.github/dependabot.yml' + - '.github/workflows/cs.yml' + - 'images/**' # Allow manually triggering the workflow. workflow_dispatch: