mirror of
https://github.com/ivuorinen/actions.git
synced 2026-01-26 11:34:00 +00:00
* docs: update documentation * feat: validate-inputs has it's own pyproject * security: mask DOCKERHUB_PASSWORD * chore: add tokens, checkout, recrete docs, integration tests * fix: add `statuses: write` permission to pr-lint
54 lines
1.7 KiB
Markdown
54 lines
1.7 KiB
Markdown
# ivuorinen/actions/csharp-build
|
|
|
|
## C# Build
|
|
|
|
### Description
|
|
|
|
Builds and tests C# projects.
|
|
|
|
### Inputs
|
|
|
|
| name | description | required | default |
|
|
|------------------|-----------------------------------------------------------------------|----------|---------|
|
|
| `dotnet-version` | <p>Version of .NET SDK to use.</p> | `false` | `""` |
|
|
| `max-retries` | <p>Maximum number of retry attempts for dotnet restore operations</p> | `false` | `3` |
|
|
| `token` | <p>GitHub token for authentication</p> | `false` | `""` |
|
|
|
|
### Outputs
|
|
|
|
| name | description |
|
|
|---------------------|--------------------------------------------------------|
|
|
| `build_status` | <p>Build completion status (success/failure)</p> |
|
|
| `test_status` | <p>Test execution status (success/failure/skipped)</p> |
|
|
| `dotnet_version` | <p>Version of .NET SDK used</p> |
|
|
| `artifacts_path` | <p>Path to build artifacts</p> |
|
|
| `test_results_path` | <p>Path to test results</p> |
|
|
|
|
### Runs
|
|
|
|
This action is a `composite` action.
|
|
|
|
### Usage
|
|
|
|
```yaml
|
|
- uses: ivuorinen/actions/csharp-build@main
|
|
with:
|
|
dotnet-version:
|
|
# Version of .NET SDK to use.
|
|
#
|
|
# Required: false
|
|
# Default: ""
|
|
|
|
max-retries:
|
|
# Maximum number of retry attempts for dotnet restore operations
|
|
#
|
|
# Required: false
|
|
# Default: 3
|
|
|
|
token:
|
|
# GitHub token for authentication
|
|
#
|
|
# Required: false
|
|
# Default: ""
|
|
```
|