feat: Add EditAsync method to ISecretManager and implement in SOPSLocalAgeSecretManager #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test .NET solution or project | |
on: | |
workflow_dispatch: | |
workflow_call: | |
secrets: | |
NUGET_API_KEY: | |
required: true | |
CODECOV_TOKEN: | |
required: true | |
pull_request: | |
merge_group: | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
if: github.event.pull_request.draft == false | |
steps: | |
- name: π Checkout | |
uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- name: βοΈ Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 9 | |
- name: π§ͺ Test | |
run: dotnet test --collect:"XPlat Code Coverage" | |
- name: π Get Coverage Files | |
id: get_coverage_files | |
if: matrix.os != 'windows-latest' | |
run: | | |
coverage_files=$(find . -name 'coverage.cobertura.xml' -print0 | tr '\0' ',' | sed 's/,$//') | |
echo "COVERAGE_FILES=$coverage_files" >> "$GITHUB_OUTPUT" | |
- name: π Get Coverage Files on Windows | |
id: get_coverage_files_windows | |
if: matrix.os == 'windows-latest' | |
run: | | |
$coverage_files = Get-ChildItem -Path . -Recurse -Filter coverage.cobertura.xml -ErrorAction SilentlyContinue | ForEach-Object { $_.FullName } | |
$coverage_files = $coverage_files -join ',' | |
echo "COVERAGE_FILES=$coverage_files" >> "$GITHUB_OUTPUT" | |
- name: π Upload Code Coverage to CodeCov | |
uses: codecov/codecov-action@v5 | |
with: | |
files: ${{ steps.get_coverage_files.outputs.COVERAGE_FILES }} | |
fail_ci_if_error: true | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |