diff --git a/.github/workflows/zitadel-pr.yml b/.github/workflows/test-code.yml similarity index 95% rename from .github/workflows/zitadel-pr.yml rename to .github/workflows/test-code.yml index 53741b61e5..f0b3d36d47 100644 --- a/.github/workflows/zitadel-pr.yml +++ b/.github/workflows/test-code.yml @@ -2,6 +2,10 @@ name: ZITADEL PR on: pull_request: + paths-ignore: + - 'docs/**' + - 'guides/**' + - '**.md' jobs: Test: diff --git a/.github/workflows/test-docs.yml b/.github/workflows/test-docs.yml new file mode 100644 index 0000000000..5574b835a5 --- /dev/null +++ b/.github/workflows/test-docs.yml @@ -0,0 +1,20 @@ +# ATTENTION: Although this workflow doesn't do much, it is still important. +# It is complementary to the workflow in the file test-code.yml. +# It enables to exclude files for the workflow and still mark the Test job as required without having pending PRs. +# GitHub recommends this solution here: +# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks + +name: ZITADEL PR + +on: + pull_request: + paths: + - 'docs/**' + - 'guides/**' + - '**.md' + +jobs: + Test: + runs-on: ubuntu-20.04 + steps: + - run: 'echo "No tests for docs are implemented, yet"'