Skip to content

Commit

Permalink
ci: Add fake passing tests when CI is skipped (frappe#39555)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush authored Jan 25, 2024
1 parent 1e89c1c commit dfda5ad
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/patch_faux.yml
Original file line number Diff line number Diff line change
@@ -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"
24 changes: 24 additions & 0 deletions .github/workflows/server-tests-mariadb-faux.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit dfda5ad

Please sign in to comment.