From dfda5ad67320c000afdbcc7facde03a7cf695f6f Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Thu, 25 Jan 2024 14:18:27 +0530 Subject: [PATCH] ci: Add fake passing tests when CI is skipped (#39555) --- .github/workflows/patch_faux.yml | 22 +++++++++++++++++ .../workflows/server-tests-mariadb-faux.yml | 24 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/workflows/patch_faux.yml create mode 100644 .github/workflows/server-tests-mariadb-faux.yml diff --git a/.github/workflows/patch_faux.yml b/.github/workflows/patch_faux.yml new file mode 100644 index 0000000000..93d88bdd99 --- /dev/null +++ b/.github/workflows/patch_faux.yml @@ -0,0 +1,22 @@ +# Tests are skipped for these files but github doesn't allow "passing" hence this is required. + +name: Skipped Patch Test + +on: + pull_request: + paths: + - "**.js" + - "**.css" + - "**.md" + - "**.html" + - "**.csv" + +jobs: + test: + runs-on: ubuntu-latest + + name: Patch Test + + steps: + - name: Pass skipped tests unconditionally + run: "echo Skipped" diff --git a/.github/workflows/server-tests-mariadb-faux.yml b/.github/workflows/server-tests-mariadb-faux.yml new file mode 100644 index 0000000000..8334661cb0 --- /dev/null +++ b/.github/workflows/server-tests-mariadb-faux.yml @@ -0,0 +1,24 @@ +# Tests are skipped for these files but github doesn't allow "passing" hence this is required. + +name: Skipped Tests + +on: + pull_request: + paths: + - "**.js" + - "**.css" + - "**.md" + - "**.html" + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + container: [1, 2, 3, 4] + + name: Python Unit Tests + + steps: + - name: Pass skipped tests unconditionally + run: "echo Skipped"