Skip to content

Commit

Permalink
wf test
Browse files Browse the repository at this point in the history
  • Loading branch information
PTKu committed Jan 28, 2025
1 parent abde63a commit 14acd64
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ on:
- 'cake/**'
- '.github/**'
workflow_dispatch:

inputs:
publish:
type: boolean
required: false
default: false
description: "Set to 'true' to publish packages"
jobs:
build:
strategy:
Expand All @@ -29,12 +34,18 @@ jobs:
- name: "Run build script"
env:
GH_TOKEN : ${{ secrets.GH_TOKEN }}
run: dotnet run --project cake/Build.csproj --do-test true --do-pack true --test-level 2 --do-publish true --framework net9.0
run: dotnet run --project cake/Build.csproj --do-test --do-pack --test-level 2 --framework net9.0
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Test report
path: 'TestResults/*.xml'
reporter: dotnet-trx
- name: "Publish packages"
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true' }}
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_USER: ${{ secrets.GH_USER }}
run: dotnet run --project cake/Build.csproj --do-publish

0 comments on commit 14acd64

Please sign in to comment.