Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.61 preview 2 #180

Merged
merged 23 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
daff2d9
docs: update CommandExecutor.cs
WeihanLi Dec 30, 2023
1cae77d
feat: Update ConsoleHelper.cs
WeihanLi Dec 30, 2023
276d5f2
Update CommandExecutor.cs
WeihanLi Dec 30, 2023
28b0c9a
Update DisposableHelper.cs
WeihanLi Jan 3, 2024
a63d0b2
feat: add ErrorWriteWithColor/ErrorWriteLineWithColor
WeihanLi Jan 3, 2024
fa81e1e
feat: add ErrorWriteIf/ErrorWriteLineIf
WeihanLi Jan 3, 2024
e7833ed
refactor: update CommandExecutor
WeihanLi Jan 3, 2024
6973620
sample: fix sample build
WeihanLi Jan 3, 2024
6bea62b
refactor: update DisposableHelper
WeihanLi Jan 3, 2024
c42b423
feat: add CommandExecutor.ExecuteAndOutput/ExecuteAndOutputAsync
WeihanLi Jan 3, 2024
038aad8
refactor: templating support
WeihanLi Jan 3, 2024
7b028b4
feat: internal DefaultTemplateParser/DefaultTemplateRenderer
WeihanLi Jan 3, 2024
9b10ad9
refactor: update templating
WeihanLi Jan 3, 2024
cb26aba
feat: add templating DependencyInjectionExtensions
WeihanLi Jan 3, 2024
fbe4317
refactor: update ProcessExtension
WeihanLi Jan 3, 2024
181ee4a
refactor: update comments
WeihanLi Jan 3, 2024
98b1701
feat: update Templating/DependencyInjectionExtensions.cs
WeihanLi Jan 3, 2024
5ea0f27
feat: update Templating DependencyInjectionExtensions
WeihanLi Jan 3, 2024
2c606d8
build: refactor build with dotnet-exec
WeihanLi Jan 3, 2024
c0c9599
Update default.yml
WeihanLi Jan 3, 2024
762c688
feat: update CommandExecutor and add EnsureSuccessExitCode extension
WeihanLi Jan 3, 2024
10eb3df
refactor: apply dotnet-format
WeihanLi Jan 3, 2024
529f76a
fix: fix build error
WeihanLi Jan 3, 2024
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
32 changes: 12 additions & 20 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,25 @@ on:
- "dev"

jobs:
mac-build:
runs-on: macos-latest
build:
name: Running tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v3
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: build
run: bash build.sh

linux-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
6.x
7.x
8.x
- name: dotnet info
run: dotnet --info
- name: build
run: bash build.sh
run: bash build.sh --target=test

windows-build:
runs-on: windows-latest
Expand Down
3 changes: 2 additions & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageVersion Include="FluentAssertions" Version="6.6.0" />
<PackageVersion Include="Moq" Version="4.18.4" />
<PackageVersion Include="xunit" Version="2.6.1" />
<PackageVersion Include="xunit" Version="2.6.4" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.6" />
<PackageVersion Include="Xunit.DependencyInjection" Version="8.7.1" />
<PackageVersion Include="Xunit.DependencyInjection.Logging" Version="8.1.0" />
<PackageVersion Include="coverlet.collector" Version="6.0.0" />
Expand Down
1 change: 0 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,3 @@ steps:
displayName: 'Powershell Script'
env:
Nuget__ApiKey: $(nugetApiKey)
Nuget__SourceUrl: $(nugetSourceUrl)
156 changes: 0 additions & 156 deletions build.cake

This file was deleted.

11 changes: 4 additions & 7 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
[string]$SCRIPT = '.\build.cake'

# Install cake.tool
dotnet tool install --global cake.tool

Write-Host "dotnet cake $SCRIPT $ARGS" -ForegroundColor GREEN
dotnet tool update -g dotnet-execute --prerelease

dotnet cake $SCRIPT $CAKE_ARGS $ARGS
Write-Host 'dotnet-exec ./build/build.cs "--args=$ARGS"' -ForegroundColor GREEN

dotnet-exec ./build/build.cs --args $ARGS
9 changes: 3 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#!/bin/sh
SCRIPT='./build.cake'

# Install cake.tool
dotnet tool install --global cake.tool
dotnet tool update -g dotnet-execute --prerelease
export PATH="$PATH:$HOME/.dotnet/tools"

echo "dotnet cake $SCRIPT $@"

dotnet cake $SCRIPT "$@"
echo "dotnet-exec ./build/build.cs --args $@"
dotnet-exec ./build/build.cs --args "$@"
Loading
Loading