Skip to content

Commit

Permalink
separate clean,build,test
Browse files Browse the repository at this point in the history
  • Loading branch information
pm7y committed Apr 7, 2021
1 parent f978da2 commit 8d3295b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 5 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,30 @@ jobs:
- name: get the code
uses: actions/checkout@v2

- name: restore, build and test
run: dotnet test
- name: clean
run: dotnet clean
--configuration ${{ env.CONFIGURATION }}
--nologo
${{ env.SOLUTION_PATH }}

- name: build
run: dotnet build
--configuration ${{ env.CONFIGURATION }}
--runtime ${{ matrix.runtime }}
--no-incremental
--nologo
/p:WarningLevel=4
/p:TreatWarningsAsErrors=true
/p:NoWarn=""
/p:WarningsAsErrors=""
${{ env.SOLUTION_PATH }}

- name: test
run: dotnet test
--configuration ${{ env.CONFIGURATION }}
--runtime ${{ matrix.runtime }}
--no-restore
--no-build
--nologo
--filter "Category=unit|Category=integration"
${{ env.SOLUTION_PATH }}
24 changes: 21 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,41 @@ jobs:
- name: get the code
uses: actions/checkout@v2

- name: build and test
run: dotnet test
- name: clean
run: dotnet clean
--configuration ${{ env.CONFIGURATION }}
--nologo
${{ env.SOLUTION_PATH }}

- name: build
run: dotnet build
--configuration ${{ env.CONFIGURATION }}
--runtime ${{ matrix.runtime }}
--no-incremental
--nologo
/p:WarningLevel=4
/p:TreatWarningsAsErrors=true
/p:NoWarn=""
/p:WarningsAsErrors=""
${{ env.SOLUTION_PATH }}

- name: test
run: dotnet test
--configuration ${{ env.CONFIGURATION }}
--runtime ${{ matrix.runtime }}
--no-restore
--no-build
--nologo
--filter "Category=unit|Category=integration"
${{ env.SOLUTION_PATH }}

- name: publish
run: dotnet publish
--configuration ${{ env.CONFIGURATION }}
--nologo
--runtime ${{ matrix.runtime }}
--no-restore
--no-build
--nologo
--self-contained true
/p:BuildNumber=${{ env.BUILD_NUMBER }}
/p:Version=${{ env.BUILD_NUMBER }}
Expand Down

0 comments on commit 8d3295b

Please sign in to comment.