A GitHub Action that sets CDash status for your commits.
- uses: Kitware/cdash-status@v1
with:
project: "MyProject"| Input | Description | Required | Default |
|---|---|---|---|
| github_token | GitHub token for API access | No | github.token |
| project | CDash project name | Yes | - |
| repository | GitHub repository in format owner/repo | No | github.repository |
The commit SHA is automatically detected based on the event type:
- For pull requests:
github.event.pull_request.head.shais used - For other events:
github.shais used
name: CDash Integration
on:
push:
pull_request_target:
jobs:
cdash:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: CDash Status
uses: Kitware/cdash-status@v1
with:
project: "MyProject"- Fork the repository
- Create a feature branch:
git checkout -b my-new-feature - Commit your changes using Conventional Commits:
feat: add a new feature (MINOR release)fix: fix a bug (PATCH release)docs: documentation changes onlystyle: changes that don't affect code meaning (formatting, whitespace)refactor: code change that neither fixes a bug nor adds a featureperf: performance improvementstest: adding or updating testsbuild: changes to build system or dependenciesci: changes to CI configurationchore: other changes that don't modify src or test files- Adding
BREAKING CHANGE:to the footer triggers a MAJOR release
- Push to the branch:
git push origin my-new-feature - Submit a pull request
This project follows Semantic Versioning.
Releases are automatically created when commits are merged to the release branch.
fix:commits trigger a PATCH release (1.0.x)feat:commits trigger a MINOR release (1.x.0)- Any commit with
BREAKING CHANGE:in the footer triggers a MAJOR release (x.0.0)
- Vicente Bolea vicente.bolea@kitware.com
MIT