Skip to content

Commit

Permalink
ci: Updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Nov 22, 2023
1 parent df28046 commit dc7ccf5
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .github/FUNDING.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "nuget" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
groups:
all:
patterns:
- "*"
6 changes: 5 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: Build, test and publish
on: [ push ]
on:
push:
branches:
- master

jobs:
build-test-publish:
name: Build, test and publish
uses: HavenDV/workflows/.github/workflows/dotnet_build-test-publish.yml@main
with:
os: windows-latest
additional-test-arguments: '--logger GitHubActions'
secrets:
nuget-key: ${{ secrets.NUGET_KEY }}
16 changes: 16 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Build and test
on:
pull_request:
branches:
- master

jobs:
build-test:
name: Build abd test
uses: HavenDV/workflows/.github/workflows/dotnet_build-test-publish.yml@main
with:
os: windows-latest
generate-build-number: false
conventional-commits-publish-conditions: false
enable-caching: false
additional-test-arguments: '--logger GitHubActions'
2 changes: 2 additions & 0 deletions H.Hooks.sln
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.github\workflows\dotnet.yml = .github\workflows\dotnet.yml
LICENSE = LICENSE
README.md = README.md
.github\dependabot.yml = .github\dependabot.yml
.github\workflows\pull-request.yml = .github\workflows\pull-request.yml
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "H.Hooks.UnitTests", "src\tests\H.Hooks.UnitTests\H.Hooks.UnitTests.csproj", "{F2548AE2-D736-4C21-942F-55C4F592EFF2}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="H.Tests" Version="1.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.8" />
Expand Down
4 changes: 4 additions & 0 deletions src/tests/H.Hooks.UnitTests/H.Hooks.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.5.1" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.8" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.8" />
Expand Down

0 comments on commit dc7ccf5

Please sign in to comment.