Skip to content

Commit 3b34e45

Browse files
committed
trying to fix the output in verbose mode
1 parent bee0f9c commit 3b34e45

10 files changed

Lines changed: 246 additions & 214 deletions

File tree

.github/lostandfound/shellcheck.yml

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

.github/workflows/Release.yml

Lines changed: 72 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,76 @@ on:
44
push:
55
branches:
66
- main
7-
tags: ['v*', '!v*-*']
7+
tags: ["v*", "!v*-*"]
88

99
workflow_dispatch:
1010
inputs:
1111
reason:
12-
description: 'Why run?'
12+
description: "Why run?"
13+
14+
os:
15+
description: "JSON array of runners"
16+
type: string
17+
default: '["ubuntu-latest"]'
18+
required: true
19+
1320
dotnet-version:
14-
description: 'Version of .NET SDK to use'
15-
default: '9.0.x'
21+
description: "Version of .NET SDK to use"
22+
type: string
23+
default: "9.0.x"
24+
required: true
25+
26+
test-project:
27+
description: "Path to test project"
28+
type: string
29+
default: "./test/UlidType.Tests/UlidType.Tests.csproj"
30+
required: true
31+
32+
benchmark-project:
33+
description: "Path to benchmark project"
34+
type: string
35+
default: "./benchmarks/UlidType.Benchmarks/UlidType.Benchmarks.csproj"
36+
required: true
1637

1738
env:
39+
CI: true
1840
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
1941
REASON: ${{ inputs.reason || 'manual run' }}
2042

2143
jobs:
44+
# last time run the gates before release
45+
build:
46+
name: Build
47+
uses: ./.github/workflows/build.yml
48+
with:
49+
os: ${{ inputs.os || vars.MATRIX_OS || '["ubuntu-latest"]' }}
50+
dotnet-version: ${{ inputs.dotnet-version || vars.DOTNET_VERSION || '9.0.x' }}
51+
configuration: Release
52+
53+
test:
54+
name: Test
55+
needs: build
56+
uses: ./.github/workflows/test.yml
57+
with:
58+
os: ${{ inputs.os || vars.MATRIX_OS || '["ubuntu-latest"]' }}
59+
dotnet-version: ${{ inputs.dotnet-version || vars.DOTNET_VERSION || '9.0.x' }}
60+
test-project: ${{ inputs.test-project || vars.TEST_PROJECT || './test/UlidType.Tests/UlidType.Tests.csproj' }}
61+
configuration: Release
62+
verbose: ${{ fromJSON(vars.VERBOSE) || false }}
63+
min-coverage-pct: ${{ fromJSON(vars.MIN_COVERAGE_PCT) || 75 }}
64+
65+
benchmarks:
66+
name: Benchmarks (Linux only)
67+
needs: build
68+
uses: ./.github/workflows/benchmarks.yml
69+
with:
70+
os: ${{ inputs.os || vars.MATRIX_OS || '["ubuntu-latest"]' }}
71+
dotnet-version: ${{ inputs.dotnet-version || vars.DOTNET_VERSION || '9.0.x' }}
72+
benchmark-project: ${{ inputs.benchmark-project || vars.BENCHMARK_PROJECT || './benchmarks/UlidType.Benchmarks/UlidType.Benchmarks.csproj' }}
73+
configuration: Release
74+
verbose: ${{ fromJSON(vars.VERBOSE) || false }}
75+
max-regression-pct: ${{ fromJSON(vars.MAX_REGRESSION_PCT) || 10 }}
76+
2277
release:
2378
if: ${{ github.event_name == 'workflow_dispatch' || (startsWith(github.ref, 'refs/tags/v') && !contains(github.ref_name,'-')) }}
2479
runs-on: ubuntu-latest
@@ -39,35 +94,32 @@ jobs:
3994
**/packages.lock.json
4095
**/*.csproj
4196
42-
- name: Test
43-
run: dotnet test -c Release
44-
4597
- name: Pack (stable)
4698
env:
4799
REASON: ${{ inputs.reason }}
48100
run: |
49101
mkdir -p artifacts/pack
50-
dotnet pack -c Release --no-build -o artifacts/pack \
102+
dotnet pack -c Release -o artifacts/pack \
51103
"/p:PackageReleaseNotes=Stable: ${REASON:-tag push}"
52104
ls -1 artifacts/pack
53105
54106
- name: Publish stable to NuGet
55107
env:
56108
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
57109
run: |
58-
if [ -z "${NUGET_API_KEY}" ]; then
59-
echo "NUGET_API_KEY not configured"; exit 1
60-
fi
110+
if [ -z "${NUGET_API_KEY}" ]; then
111+
echo "NUGET_API_KEY not configured"; exit 1
112+
fi
61113
62-
dotnet nuget push artifacts/pack/*.nupkg \
63-
--api-key "${NUGET_API_KEY}" \
64-
--source https://api.nuget.org/v3/index.json \
65-
--skip-duplicate
114+
dotnet nuget push artifacts/pack/*.nupkg \
115+
--api-key "${NUGET_API_KEY}" \
116+
--source https://api.nuget.org/v3/index.json \
117+
--skip-duplicate
66118
67-
dotnet nuget push artifacts/pack/*.snupkg \
68-
--api-key "${NUGET_API_KEY}" \
69-
--source https://api.nuget.org/v3/index.json \
70-
--skip-duplicate
119+
dotnet nuget push artifacts/pack/*.snupkg \
120+
--api-key "${NUGET_API_KEY}" \
121+
--source https://api.nuget.org/v3/index.json \
122+
--skip-duplicate
71123
72124
- name: Summary
73125
env:
@@ -80,4 +132,4 @@ jobs:
80132
echo "- Stable release reason: ${REASON:-tag push}"
81133
echo "- Artifacts:"
82134
ls -1 artifacts/pack | sed 's/^/ - /'
83-
} >> "$GITHUB_STEP_SUMMARY"
135+
} >> "$GITHUB_STEP_SUMMARY"

.github/workflows/benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ on:
4848
force-new-baseline:
4949
description: "Ignore the existing baseline and force a new baseline"
5050
type: boolean
51-
required: true
51+
required: false
5252
default: false
5353

5454
permissions:

.vscode/launch.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010
"name": "Bash-Debug (select script from list of sh files)",
1111
"cwd": "${workspaceFolder}",
1212
"program": "${command:SelectScriptName}",
13-
"args": [],
13+
"args": [
14+
"-h"
15+
],
1416
"env": {
15-
"QUIET": false,
17+
"QUIET": true,
1618
"VERBOSE": true,
17-
"TRACE_ENABLED": true
19+
"TRACE_ENABLED": false
1820
},
1921
},
2022
{

scripts/bash/&_ignore

Whitespace-only changes.

0 commit comments

Comments
 (0)