-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 0c99682
Showing
17 changed files
with
1,292 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,20 @@ | ||
name: Build-CI | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
name: Building application | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET Core SDK | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 6.0.x | ||
|
||
- name: Build stage | ||
run: dotnet build --configuration Release |
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,45 @@ | ||
name: Release-CD | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
env: | ||
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | ||
GITHUB_NUGET_API_KEY: ${{ secrets.GH_TOKEN }} | ||
NUGET_API_URL: ${{ vars.NUGET_API_URL }} | ||
GITHUB_NUGET_API_URL: ${{ vars.GH_NUGET_API_URL }} | ||
PROJECT_FILE_PATH: 'src/fluent-execution/Dapper.FluentExecution.csproj' | ||
|
||
jobs: | ||
build: | ||
name: Build stage | ||
uses: ./.github/workflows/build.yml | ||
|
||
test: | ||
name: Test stage | ||
needs: [ build ] | ||
uses: ./.github/workflows/test.yml | ||
|
||
Publish: | ||
name: Publishing application | ||
needs: [ build, test ] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET Core SDK | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 6.0.x | ||
|
||
- name: Creating project package | ||
run: dotnet pack $PROJECT_FILE_PATH --configuration Release -o nupkg | ||
|
||
- name: Publishing package on Nuget V3 | ||
run: dotnet nuget push ./nupkg/*.nupkg --source $NUGET_API_URL --skip-duplicate --api-key $NUGET_API_KEY | ||
|
||
|
||
- name: Publishing package on Github Nuget | ||
run: dotnet nuget push ./nupkg/*.nupkg --source $GITHUB_NUGET_API_URL --skip-duplicate --api-key $GITHUB_NUGET_API_KEY |
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,26 @@ | ||
name: Test-CI | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
name: Testing application | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET Core SDK | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 6.0.x | ||
|
||
- name: Build stage | ||
run: dotnet build --configuration Release | ||
|
||
- name: Test stage | ||
run: dotnet test --no-build --verbosity normal --configuration Release /p:CollectCoverage=true /p:CoverletOutputFormat=opencover | ||
|
||
- name: Test code coverage | ||
uses: codecov/codecov-action@v1 |
Oops, something went wrong.