GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ci(apex-tests): skip the Apex tests for markdown-only changes by dschach · Pull Request #377 · dschach/salesforce-trigger-framework

Conversation

@dschach

@dschach dschach commented Oct 30, 2026

Copy link
Copy Markdown
Owner

This pull request stops the Apex tests from running on a pull request that changes only markdown files in force-app/ or sample-handler/. Markdown files are not deployed to the scratch org, so such a run costs a scratch org and tests nothing new. PR 376 started a run only because it changed sample-handler/README.md.

Changes

  • The pull_request paths filter of apex-tests.yml has a new pattern, !**/*.md, after force-app/** and sample-handler/**. GitHub reads the patterns in order, so the pattern removes the markdown files of both folders from the match.
  • The header comment of the workflow says that a change to a markdown file alone does not start it.

Behavior notes

  • A pull request still starts a run when at least 1 other file in force-app/ or sample-handler/ changes, or when the workflow file changes. A markdown file does not stop a run that another file starts.
  • The push filter for main is unchanged. It already accepts only Apex classes.
  • In a GitHub path filter, * does not match a /, so the pattern must be !**/*.md. The pattern !*.md matches only markdown files at the repository root.
  • This pull request starts 1 Apex test run itself, because it changes the workflow file.

Test plan

  • A simulation of GitHub's rule, in which the last pattern that matches a file decides, gave these results: a change to only sample-handler/README.md, only force-app/README.md, or only a deeper markdown file in sample-handler/ skips the run. A change to the sample README together with a sample class runs it, and so does a change to TriggerHandler.cls.
  • The Prettier check passes.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Claude AI @claude
ci(apex-tests): skip the Apex tests for markdown-only changes
b821570
A pull request whose only changes in force-app or sample-handler are markdown files no longer starts the Apex tests, because markdown files are not deployed. Any other change in those folders still starts a run.

Co-Authored-By: Claude <[email protected]>
@codecov

codecov Bot commented Oct 30, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (b4b7781) to head (b821570).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #377   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          254       254           
=========================================
  Hits           254       254           
Flag Coverage Δ
Apex 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dschach
dschach merged commit 8385a72 into main Oct 30, 2026
5 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dschach
dschach deleted the ci/skip-markdown-apex-tests branch October 30, 2026 03:38
@dschach dschach mentioned this pull request Oct 30, 2026
chore(main): release 1.5.1 #375
Merged
dschach added a commit that referenced this pull request Oct 30, 2026
@dschach
chore(main): release 1.5.1 (#375)
58db753
🤖 I have created a release *beep* *boop*
---


## [1.5.1](v1.5.0...v1.5.1) (2026-10-30)


### Bug Fixes

* **handler:** Trim the handler name given to the String constructor ([b4b7781](b4b7781))


### Miscellaneous Chores

* **apexdox:** Build the sample page from the sample handler README ([b98f560](b98f560))
* **markdown:** Generate markdown tables of contents with doctoc ([b98f560](b98f560))


### Code Refactoring

* **handler:** Clean up TriggerHandler fields, names, and comments ([#374](#374)) ([b4b7781](b4b7781))
* **handler:** Rename the inner class LoopCount to LoopCounter ([b4b7781](b4b7781))


### Documentation

* **handler:** Drop the leading description tags from ApexDoc ([b4b7781](b4b7781))
* **handler:** Say exactly which runs the loop counter counts ([b4b7781](b4b7781))
* **site:** Refresh the documentation site and its markdown sources ([#376](#376)) ([b98f560](b98f560))
* **site:** Show the current classes, README, and changelog on the site ([b98f560](b98f560))


### Continuous Integration

* **apex-tests:** Skip the Apex tests for markdown-only changes ([#377](#377)) ([8385a72](8385a72))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dschach
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.