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
15 changes: 15 additions & 0 deletions .github/actions/prepare-dotnet/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Prepare .Net
description: Setups local NUGET source and pack the Cucumber.CCK project
runs:
using: "composite"
steps:
# Setup local NUGET source
- name: Setup local NUGET source
run: mkdir -p ./bin/Release/NuGet
shell: bash
working-directory: dotnet/Cucumber.CCK
# Pack the Cucumber.CCK project first
- name: Pack Cucumber.CCK
run: dotnet pack -c Release
shell: bash
working-directory: dotnet/Cucumber.CCK
12 changes: 4 additions & 8 deletions .github/workflows/codeql-dotnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,10 @@ jobs:
- uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0
with:
dotnet-version: '10.0.x'
# Setup local NUGET source
- name: Setup local NUGET source
run: mkdir -p ./bin/Release/NuGet
working-directory: dotnet/Cucumber.CCK
# Pack the Cucumber.CCK project first
- name: Pack Cucumber.CCK
run: dotnet pack -c Release
working-directory: dotnet/Cucumber.CCK
- uses: ./.github/actions/prepare-dotnet
- name: Build
run: dotnet build
working-directory: dotnet
- uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2
with:
category: "/language:csharp"
9 changes: 1 addition & 8 deletions .github/workflows/test-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,7 @@ jobs:
- uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0
with:
dotnet-version: '10.0.x'
# Setup local NUGET source
- name: Setup local NUGET source
run: mkdir -p ./bin/Release/NuGet
working-directory: dotnet/Cucumber.CCK
# Pack the Cucumber.CCK project first
- name: Pack Cucumber.CCK
run: dotnet pack -c Release
working-directory: dotnet/Cucumber.CCK
- uses: ./.github/actions/prepare-dotnet
# Run tests which will use locally packed package
- name: Run tests
run: dotnet test -c Release
Expand Down
Loading