-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0d8d7a
commit 6c8c49e
Showing
5 changed files
with
208 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## Description | ||
|
||
[Description of the bug or feature] | ||
|
||
### Steps to Reproduce | ||
|
||
1. | ||
2. | ||
|
||
### Related code | ||
|
||
``` | ||
insert short code snippets here | ||
``` | ||
|
||
**Expected behavior:** [What you expected to happen] | ||
|
||
**Actual behavior:** [What actually happened] | ||
|
||
|
||
|
||
## Specifications | ||
|
||
- .NET Version : 6.0.0 | ||
- System : CentOS 7.2 |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ dev, main, master, '**' ] | ||
pull_request: | ||
branches: [ dev, main, master ] | ||
|
||
jobs: | ||
|
||
windows: | ||
name: build on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ windows-latest ] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup .NET SDK | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: | | ||
7.0.x | ||
6.0.x | ||
8.0.x | ||
- name: Show dotnet Version | ||
run: | | ||
dotnet --list-sdks | ||
dotnet --list-runtimes | ||
- name: Build with dotnet | ||
run: | | ||
dotnet build --configuration Release D:\a\DisposeScope\DisposeScope\DisposeScope.sln |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Build&Test | ||
|
||
on: | ||
push: | ||
branches: [ dev, main, master, '**' ] | ||
pull_request: | ||
branches: [ dev, main, master ] | ||
|
||
jobs: | ||
|
||
linux: | ||
name: build and test on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup .NET SDK | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: | | ||
6.0.x | ||
7.0.x | ||
8.0.x | ||
- name: Show dotnet Version | ||
run: | | ||
dotnet --list-sdks | ||
dotnet --list-runtimes | ||
- name: Show docker info | ||
run: | | ||
docker ps -a | ||
- name: Build with dotnet | ||
run: | | ||
dotnet build --configuration Release /home/runner/work/DisposeScope/DisposeScope/DisposeScope.sln | ||
- name: Run tests on net8.0 | ||
run: | | ||
dotnet test --framework=net8.0 /home/runner/work/DisposeScope/DisposeScope/tests/Dispose.Scope.Tests.csproj |
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Release_Stable | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*.*.*-beta*" | ||
- "*.*.*-rc*" | ||
|
||
jobs: | ||
build_artifact: | ||
name: Build and upload artifact | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Setup .NET SDK | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: | | ||
6.0.x | ||
7.0.x | ||
8.0.x | ||
- name: Build with dotnet | ||
run: dotnet build --configuration Release /home/runner/work/DisposeScope/DisposeScope/DisposeScope.sln | ||
- name: Pack with dotnet | ||
env: | ||
VERSION: ${{ github.ref_name }} | ||
run: dotnet pack /home/runner/work/DisposeScope/DisposeScope/DisposeScope.sln --version-suffix $VERSION -o /home/runner/work/nugetpkgs -c Release --no-build | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: nugetpkgs | ||
path: /home/runner/work/nugetpkgs | ||
|
||
release_nuget: | ||
name: Release to Nuget | ||
needs: build_artifact | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Download build artifacts | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: nugetpkgs | ||
- name: list nugetpkgs | ||
run: ls nugetpkgs | ||
- name: Release | ||
run: | | ||
for file in nugetpkgs/*.nupkg | ||
do | ||
dotnet nuget push $file -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate -s https://www.nuget.org/api/v2/package | ||
done |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Release_Unstable | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*.*.*" | ||
- "!*.*.*-beta*" | ||
- "!*.*.*-rc*" | ||
|
||
jobs: | ||
build_artifact: | ||
name: Build and upload artifact | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Setup .NET SDK | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: | | ||
6.0.x | ||
7.0.x | ||
8.0.x | ||
- name: Build with dotnet | ||
run: dotnet build --configuration Release /home/runner/work/DisposeScope/DisposeScope/DisposeScope.sln | ||
- name: Pack with dotnet | ||
env: | ||
VERSION: ${{ github.ref_name }} | ||
run: dotnet pack /home/runner/work/DisposeScope/DisposeScope/DisposeScope.sln --version-suffix $VERSION -o /home/runner/work/nugetpkgs -c Release --no-build | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: nugetpkgs | ||
path: /home/runner/work/nugetpkgs | ||
|
||
release_nuget: | ||
name: Release to Nuget | ||
needs: build_artifact | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Download build artifacts | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: nugetpkgs | ||
- name: list nugetpkgs | ||
run: ls nugetpkgs | ||
- name: Release | ||
run: | | ||
for file in nugetpkgs/*.nupkg | ||
do | ||
dotnet nuget push $file -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate -s https://www.nuget.org/api/v2/package | ||
done |