Merge pull request #48819 from frappe/mergify/bp/version-15-hotfix/pr-39555

ci: Add fake passing tests when CI is skipped (backport #39555)
This commit is contained in:
Mihir Kandoi
2025-07-29 11:18:02 +05:30
committed by GitHub
2 changed files with 48 additions and 0 deletions

23
.github/workflows/patch_faux.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
# Tests are skipped for these files but github doesn't allow "passing" hence this is required.
name: Skipped Patch Test
permissions: none
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"

View File

@@ -0,0 +1,25 @@
# Tests are skipped for these files but github doesn't allow "passing" hence this is required.
name: Skipped Tests
permissions: {}
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"