Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Build
on:
pull_request:

permissions:
contents: read
pull-requests: write

env:
# Set the DOTNET_SKIP_FIRST_TIME_EXPERIENCE environment variable to stop wasting time caching packages
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
Expand All @@ -17,15 +21,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
lfs: true
fetch-depth: 0
- name: 'Git Fetch Tags'
run: git fetch --tags
shell: bash
- name: 'Install .NET Core SDK'
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v6
with:
dotnet-version: |
6.0.x
Expand All @@ -45,12 +49,12 @@ jobs:
if: github.event_name == 'pull_request'
run: cp coverage/*/coverage.cobertura.xml coverage/coverage.cobertura.xml
- name: 'Publish Code Coverage'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: Coverage Cobertura Report
path: './coverage/coverage.cobertura.xml'
- name: 'Publish Test Results'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: Tests HTML Report
path: './coverage/VaultSharp.Extensions.Configuration.Test.html'
Expand All @@ -67,7 +71,7 @@ jobs:
indicators: true
output: both
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
uses: marocchino/sticky-pull-request-comment@v3
if: github.event_name == 'pull_request'
with:
recreate: true
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- master

permissions:
contents: read

env:
# Set the DOTNET_SKIP_FIRST_TIME_EXPERIENCE environment variable to stop wasting time caching packages
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
Expand All @@ -19,12 +22,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
lfs: true
fetch-depth: 0
- name: 'Install .NET Core SDK'
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v6
with:
dotnet-version: |
6.0.x
Expand All @@ -50,7 +53,7 @@ jobs:
echo "COVERAGE=$COVERAGE%" >> $GITHUB_ENV
echo "BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV
- name: Create the Badgegg
uses: schneegans/dynamic-badges-action@v1.7.0
uses: schneegans/dynamic-badges-action@v1.9.0
with:
auth: ${{ secrets.GIST_SECRET }}
gistID: 5242a4e2d58a428062b3a59824d5864e
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ on:
branches:
- master

permissions:
contents: write
pull-requests: read

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v6
- uses: release-drafter/release-drafter@v7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,24 @@ on:
tags:
- '*'

permissions:
contents: read

jobs:
build:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
lfs: true
fetch-depth: 0
- name: 'Git Fetch Tags'
run: git fetch --tags
shell: pwsh
- name: 'Install .NET Core SDK'
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v6
with:
dotnet-version: |
6.0.x
Expand All @@ -35,12 +38,12 @@ jobs:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
shell: pwsh
- name: 'Publish Code Coverage'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: tests
path: './Artefacts/**/coverage.opencover.xml'
- name: 'Publish Test Results'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: tests
path: './Artefacts/VaultSharp.Extensions.Configuration.Test.html'
Original file line number Diff line number Diff line change
Expand Up @@ -971,8 +971,8 @@ public async Task Success_TokenNoAuthMethod()
var container = this.PrepareVaultContainer(tokenId: "");
try
{
await container.StartAsync(cts.Token).ConfigureAwait(false);
await this.LoadDataAsync("http://localhost:8200", values).ConfigureAwait(false);
await container.StartAsync(cts.Token);
await this.LoadDataAsync("http://localhost:8200", values);

// Moq mock of PostProcessHttpClientHandlerAction implementation:
var mockConfigureProxyAction = new Mock<Action<HttpMessageHandler>>();
Expand All @@ -998,7 +998,7 @@ public async Task Success_TokenNoAuthMethod()
finally
{
cts.Cancel();
await container.DisposeAsync().ConfigureAwait(false);
await container.DisposeAsync();
}
}

Expand Down
Loading