From 4014c017fab8337dc8d4685f725f6c73584f22b2 Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Thu, 11 Aug 2022 10:06:25 +0200 Subject: [PATCH] ci: ignore some changes for tests (#4152) * ci: ignore some changes for tests * is check ok? * match all .md files * is check ok? * is check ok? * avoid skipped but required checks * document test-docs.yml workflow * cleanup check tests * trigger check * revert readme changes * respect changes in /tools/ for tests Co-authored-by: Livio Spring --- .../{zitadel-pr.yml => test-code.yml} | 4 ++++ .github/workflows/test-docs.yml | 20 +++++++++++++++++++ 2 files changed, 24 insertions(+) rename .github/workflows/{zitadel-pr.yml => test-code.yml} (95%) create mode 100644 .github/workflows/test-docs.yml 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 53741b61e..f0b3d36d4 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 000000000..5574b835a --- /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"'