-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from oliverbooth/release/4.0.0
4.0.0 major release
- Loading branch information
Showing
524 changed files
with
5,466 additions
and
17,208 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,46 +23,27 @@ jobs: | |
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: | | ||
3.1.x | ||
6.0.x | ||
7.0.x | ||
8.0.x | ||
- name: Add NuGet source | ||
run: dotnet nuget add source --username oliverbooth --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/oliverbooth/index.json" | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Install coverage tools | ||
run: | | ||
dotnet tool install --global JetBrains.dotCover.GlobalTool | ||
dotnet tool install --global dotnet-reportgenerator-globaltool | ||
- name: Build | ||
run: dotnet build --no-restore --configuration Release | ||
|
||
- name: Test .NET Core 3.1 | ||
run: dotnet test --no-build --verbosity normal --configuration Release --framework netcoreapp3.1 | ||
|
||
- name: Test .NET 6 | ||
run: dotnet test --no-build --verbosity normal --configuration Release --framework net6.0 | ||
|
||
- name: Test .NET 7 | ||
run: dotnet test --no-build --verbosity normal --configuration Release --framework net7.0 | ||
run: dotnet test --no-build --verbosity normal --configuration Release --framework net6.0 --collect:"XPlat Code Coverage" --results-directory test-results/net6.0 | ||
|
||
- name: Test .NET 8 | ||
run: dotnet test --no-build --verbosity normal --configuration Release --framework net8.0 | ||
|
||
- name: Collect coverage | ||
run: dotnet dotcover test --dcReportType=DetailedXML | ||
|
||
- name: Convert coverage | ||
run: reportgenerator -reports:./dotCover.Output.xml -targetdir:. -reporttypes:Cobertura | ||
run: dotnet test --no-build --verbosity normal --configuration Release --framework net8.0 --collect:"XPlat Code Coverage" --results-directory test-results/net8.0 | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
disable_search: true | ||
file: Cobertura.xml | ||
directory: test-results | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
slug: oliverbooth/X10D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
dotnet-version: 8.0.x | ||
|
||
- name: Add GitHub NuGet source | ||
run: dotnet nuget add source --username oliverbooth --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/oliverbooth/index.json" | ||
|
@@ -33,9 +33,7 @@ jobs: | |
run: | | ||
mkdir build | ||
dotnet pack X10D --configuration Debug --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='nightly' -p:BuildNumber=${{ github.run_number }} | ||
dotnet pack X10D.DSharpPlus --configuration Debug --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='nightly' -p:BuildNumber=${{ github.run_number }} | ||
dotnet pack X10D.Hosting --configuration Debug --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='nightly' -p:BuildNumber=${{ github.run_number }} | ||
dotnet pack X10D.Unity --configuration Debug --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='nightly' -p:BuildNumber=${{ github.run_number }} | ||
- name: Push NuGet Package to GitHub | ||
run: dotnet nuget push "build/*" --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate | ||
|
@@ -48,42 +46,3 @@ jobs: | |
with: | ||
name: build | ||
path: build/ | ||
|
||
- name: Checkout upm branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: upm | ||
path: upm | ||
|
||
- name: Build package.json | ||
run: | | ||
dotnet run --project ./tools/UpmPackageGenerator/UpmPackageGenerator.csproj "./X10D/bin/Debug/netstandard2.1/X10D.dll" | ||
cp package.json upm/package.json | ||
- name: Copy built artifacts to upm | ||
run: | | ||
cd upm | ||
cp ../X10D/bin/Debug/netstandard2.1/X10D.dll ./X10D.dll | ||
cp ../X10D/bin/Debug/netstandard2.1/X10D.xml ./X10D.xml | ||
cp ../X10D.Unity/bin/Debug/netstandard2.1/X10D.Unity.dll ./X10D.Unity.dll | ||
cp ../X10D.Unity/bin/Debug/netstandard2.1/X10D.Unity.xml ./X10D.Unity.xml | ||
- name: Check for changes | ||
run: | | ||
cd upm | ||
git diff --quiet | ||
continue-on-error: true | ||
|
||
- name: Commit update | ||
if: ${{ success() }} | ||
run: | | ||
cd upm | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add X10D.dll | ||
git add X10D.Unity.dll | ||
git add X10D.xml | ||
git add X10D.Unity.xml | ||
git add package.json | ||
git commit -m "Update upm branch ($GITHUB_SHA)" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
dotnet-version: 8.0.x | ||
|
||
- name: Add GitHub NuGet source | ||
run: dotnet nuget add source --username oliverbooth --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/oliverbooth/index.json" | ||
|
@@ -32,9 +32,7 @@ jobs: | |
run: | | ||
mkdir build | ||
dotnet pack X10D --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='prerelease' -p:BuildNumber=${{ github.run_number }} | ||
dotnet pack X10D.DSharpPlus --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='prerelease' -p:BuildNumber=${{ github.run_number }} | ||
dotnet pack X10D.Hosting --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='prerelease' -p:BuildNumber=${{ github.run_number }} | ||
dotnet pack X10D.Unity --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='prerelease' -p:BuildNumber=${{ github.run_number }} | ||
- name: Push NuGet Package to GitHub | ||
run: dotnet nuget push "build/*" --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate | ||
|
@@ -53,42 +51,3 @@ jobs: | |
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: true | ||
|
||
- name: Checkout upm branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: upm | ||
path: upm | ||
|
||
- name: Build package.json | ||
run: | | ||
dotnet run --project ./tools/UpmPackageGenerator/UpmPackageGenerator.csproj "./X10D/bin/Release/netstandard2.1/X10D.dll" | ||
cp package.json upm/package.json | ||
- name: Copy built artifacts to upm | ||
run: | | ||
cd upm | ||
cp ../X10D/bin/Release/netstandard2.1/X10D.dll ./X10D.dll | ||
cp ../X10D/bin/Release/netstandard2.1/X10D.xml ./X10D.xml | ||
cp ../X10D.Unity/bin/Release/netstandard2.1/X10D.Unity.dll ./X10D.Unity.dll | ||
cp ../X10D.Unity/bin/Release/netstandard2.1/X10D.Unity.xml ./X10D.Unity.xml | ||
- name: Check for changes | ||
run: | | ||
cd upm | ||
git diff --quiet | ||
continue-on-error: true | ||
|
||
- name: Commit update | ||
if: ${{ success() }} | ||
run: | | ||
cd upm | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add X10D.dll | ||
git add X10D.Unity.dll | ||
git add X10D.xml | ||
git add X10D.Unity.xml | ||
git add package.json | ||
git commit -m "Update upm branch ($GITHUB_SHA)" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
dotnet-version: 8.0.x | ||
|
||
- name: Add GitHub NuGet source | ||
run: dotnet nuget add source --username oliverbooth --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/oliverbooth/index.json" | ||
|
@@ -32,9 +32,7 @@ jobs: | |
run: | | ||
mkdir build | ||
dotnet pack X10D --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build | ||
dotnet pack X10D.DSharpPlus --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build | ||
dotnet pack X10D.Hosting --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build | ||
dotnet pack X10D.Unity --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build | ||
- name: Push NuGet Package to GitHub | ||
run: dotnet nuget push "build/*" --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate | ||
|
@@ -53,42 +51,3 @@ jobs: | |
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: false | ||
|
||
- name: Checkout upm branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: upm | ||
path: upm | ||
|
||
- name: Build package.json | ||
run: | | ||
dotnet run --project ./tools/UpmPackageGenerator/UpmPackageGenerator.csproj "./X10D/bin/Release/netstandard2.1/X10D.dll" | ||
cp package.json upm/package.json | ||
- name: Copy built artifacts to upm | ||
run: | | ||
cd upm | ||
cp ../X10D/bin/Release/netstandard2.1/X10D.dll ./X10D.dll | ||
cp ../X10D/bin/Release/netstandard2.1/X10D.xml ./X10D.xml | ||
cp ../X10D.Unity/bin/Release/netstandard2.1/X10D.Unity.dll ./X10D.Unity.dll | ||
cp ../X10D.Unity/bin/Release/netstandard2.1/X10D.Unity.xml ./X10D.Unity.xml | ||
- name: Check for changes | ||
run: | | ||
cd upm | ||
git diff --quiet | ||
continue-on-error: true | ||
|
||
- name: Commit update | ||
if: ${{ success() }} | ||
run: | | ||
cd upm | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add X10D.dll | ||
git add X10D.Unity.dll | ||
git add X10D.xml | ||
git add X10D.Unity.xml | ||
git add package.json | ||
git commit -m "Update upm branch ($GITHUB_SHA)" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.