Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lyndychivs/dotnet-stryker-action
GitHub Action for mutation testing with Stryker.NET via Docker
https://github.com/lyndychivs/dotnet-stryker-action
action actions dotnet github github-actions mutation report reporting stryker testing
Last synced: 21 days ago
JSON representation
GitHub Action for mutation testing with Stryker.NET via Docker
- Host: GitHub
- URL: https://github.com/lyndychivs/dotnet-stryker-action
- Owner: lyndychivs
- License: mit
- Created: 2025-01-14T00:01:06.000Z (24 days ago)
- Default Branch: master
- Last Pushed: 2025-01-16T01:13:12.000Z (22 days ago)
- Last Synced: 2025-01-16T02:21:54.636Z (22 days ago)
- Topics: action, actions, dotnet, github, github-actions, mutation, report, reporting, stryker, testing
- Language: Shell
- Homepage: https://lyndychivs.github.io/stryker-dotnet-action/
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dotnet-stryker-action
GitHub Action for mutation testing with [Stryker.NET](https://stryker-mutator.io/docs/stryker-net/introduction/) via Docker.## GitHub Action
This Action only accepts a [Stryker Mutator .NET Configuration](https://stryker-mutator.io/docs/stryker-net/configuration) file (`.json` or `.yaml` format).The Configuration File must exist at the root level of the Repository.
### Inputs
`configurationFile` (required) : The name of the Stryker.NET configuration file (must be in the root of the repository).`dashboardApiKey` (optional) : The API key for authentication with the Stryker dashboard.
`version` (optional) : The version of the report. This should be filled with the branch name, git tag or git sha.
#### Example 1
```yml
name: Run Stryker.NETon: push
jobs:
mutation-testing:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4- name: Run Stryker.NET against Repository
uses: lyndychivs/dotnet-stryker-action@v1
with:
configurationFile: "stryker-config.json"
```
#### Example 2 - with Dashboard API Key
Check out the [Stryker Dashboard documentation here](https://stryker-mutator.io/docs/General/dashboard/); the API key is generated from the Dashboard site.
```yml
name: Run Stryker.NET with Dashboard Reportingon: push
jobs:
mutation-testing:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4- name: Run Stryker.NET against Repository
uses: lyndychivs/dotnet-stryker-action@v1
with:
configurationFile: "stryker-config.json"
dashboardApiKey: ${{ secrets.STRYKER_DASHBOARD }} # API key saved in Secrets
version: ${{ github.ref_name }} # example 'master' or 'main'
```