Skip to content

Commit 726bdb4

Browse files
authored
migrate from dotnet cake to makefile (#66)
* migrate from dotnet cake to makefile * restored running test in pipeline * ci fixes * makefile fix
1 parent 16e5f78 commit 726bdb4

File tree

10 files changed

+223
-106
lines changed

10 files changed

+223
-106
lines changed

.config/dotnet-tools.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
fetch-depth: 0
2424
- name: 'Git Fetch Tags'
2525
run: git fetch --tags
26-
shell: pwsh
26+
shell: bash
2727
- name: 'Install .NET Core SDK'
2828
uses: actions/setup-dotnet@v4
2929
with:
@@ -34,15 +34,12 @@ jobs:
3434
- name: 'Fix permissions'
3535
run: chmod +x ./Tests/VaultSharp.Extensions.Configuration.Test/approle.sh && chmod +x ./Tests/VaultSharp.Extensions.Configuration.Test/approle_nolist.sh
3636
shell: bash
37-
- name: 'Dotnet Tool Restore'
38-
run: dotnet tool restore
39-
shell: pwsh
40-
- name: 'Dotnet Cake Build'
41-
run: dotnet cake --target=Build
42-
shell: pwsh
43-
- name: 'Dotnet Cake Test'
44-
run: dotnet cake --target=Test
45-
shell: pwsh
37+
- name: Test
38+
run: make Test
39+
shell: bash
40+
- name: 'Pack'
41+
run: make Pack
42+
shell: bash
4643
- name: Copy Coverage To Predictable Location
4744
if: github.event_name == 'pull_request'
4845
run: cp coverage/*/coverage.cobertura.xml coverage/coverage.cobertura.xml
@@ -74,6 +71,6 @@ jobs:
7471
with:
7572
recreate: true
7673
path: code-coverage-results.md
77-
- name: 'Dotnet Cake Pack'
78-
run: dotnet cake --target=Pack
79-
shell: pwsh
74+
- name: 'Pack'
75+
run: make Pack
76+
shell: bash

.github/workflows/master.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,12 @@ jobs:
3333
- name: 'Fix permissions'
3434
run: chmod +x ./Tests/VaultSharp.Extensions.Configuration.Test/approle.sh && chmod +x ./Tests/VaultSharp.Extensions.Configuration.Test/approle_nolist.sh
3535
shell: bash
36-
- name: 'Dotnet Tool Restore'
37-
run: dotnet tool restore
38-
shell: pwsh
39-
- name: 'Dotnet Cake Build'
40-
run: dotnet cake --target=Build
41-
shell: pwsh
42-
- name: 'Dotnet Cake Test'
43-
run: dotnet cake --target=Test
44-
shell: pwsh
36+
- name: Test
37+
run: make Test
38+
shell: bash
39+
- name: 'Pack'
40+
run: make Pack
41+
shell: bash
4542
- name: Copy Coverage To Predictable Location
4643
run: cp coverage/*/coverage.cobertura.xml coverage/coverage.cobertura.xml
4744
- name: 'Extract summary from Code Coverage Summary Report'

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
99
update_release_draft:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: release-drafter/release-drafter@v5
12+
- uses: release-drafter/release-drafter@v6
1313
env:
1414
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,10 @@ jobs:
2828
- name: 'Fix permissions'
2929
run: chmod +x ./Tests/VaultSharp.Extensions.Configuration.Test/approle.sh && chmod +x ./Tests/VaultSharp.Extensions.Configuration.Test/approle_nolist.sh
3030
shell: bash
31-
- name: 'Dotnet Tool Restore'
32-
run: dotnet tool restore
33-
shell: pwsh
34-
- name: 'Dotnet Cake Build'
35-
run: dotnet cake --target=Build
36-
shell: pwsh
37-
- name: 'Dotnet Cake Test'
38-
run: dotnet cake --target=Test
39-
shell: pwsh
40-
- name: 'Dotnet Cake Pack'
41-
run: dotnet cake --target=Pack
42-
shell: pwsh
43-
- name: 'Dotnet Cake Publish'
44-
run: dotnet cake --target=Publish --nuget-key="${{secrets.NUGET_API_KEY}}"
31+
- name: 'Publish'
32+
run: make Publish
33+
env:
34+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
4535
shell: pwsh
4636
- name: 'Publish Code Coverage'
4737
uses: actions/upload-artifact@v4

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Mikhail Merkulov
3+
Copyright (c) 2025 Mykhaylo Merkulov
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Source/VaultSharp.Extensions.Configuration/VaultSharp.Extensions.Configuration.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<TargetFrameworks>net6.0;net7.0;net8.0;netstandard2.0;netstandard2.1</TargetFrameworks>
1111
<IncludeSymbols>true</IncludeSymbols>
1212
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
13-
<Copyright>Copyright 2024 © Mikhail Merkulov. All rights Reserved</Copyright>
13+
<Copyright>Copyright 2025 © Mykhaylo Merkulov. All rights Reserved</Copyright>
1414
</PropertyGroup>
1515

1616
<PropertyGroup Label="Package">
@@ -36,6 +36,10 @@
3636
<PrivateAssets>all</PrivateAssets>
3737
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3838
</PackageReference>
39+
<PackageReference Include="coverlet.msbuild" Version="6.0.4">
40+
<PrivateAssets>all</PrivateAssets>
41+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
42+
</PackageReference>
3943
</ItemGroup>
4044

4145
<ItemGroup>

0 commit comments

Comments
 (0)