forked from PHOENIXCONTACT/MORYX-Framework
-
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.
Workfow with uploaded artifacts and generate documentation
- Loading branch information
Showing
2 changed files
with
101 additions
and
58 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
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 |
---|---|---|
|
@@ -34,64 +34,109 @@ jobs: | |
|
||
- name: Build | ||
shell: pwsh | ||
run: ./Build.ps1 -Build | ||
run: ./Build.ps1 -Build -Pack | ||
|
||
- name: Upload package artefacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: packages | ||
path: artifacts/Packages/ | ||
retention-days: 1 | ||
|
||
UnitTests: | ||
needs: [Build] | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup MSBuild | ||
uses: microsoft/setup-msbuild@v1 | ||
|
||
- name: Setup NuGet.exe | ||
uses: NuGet/[email protected] | ||
|
||
- name: Execute Unit Tests | ||
shell: pwsh | ||
run: ./Build.ps1 -UnitTests | ||
|
||
- name: Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
files: '*.OpenCover.xml' | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup MSBuild | ||
uses: microsoft/setup-msbuild@v1 | ||
|
||
- name: Setup NuGet.exe | ||
uses: NuGet/[email protected] | ||
|
||
- name: Execute Unit Tests | ||
shell: pwsh | ||
run: ./Build.ps1 -UnitTests | ||
|
||
- name: Upload test results | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: test-results | ||
path: artifacts/Tests/ | ||
retention-days: 1 | ||
|
||
IntegrationTests: | ||
needs: [Build] | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup MSBuild | ||
uses: microsoft/setup-msbuild@v1 | ||
|
||
- name: Setup NuGet.exe | ||
uses: NuGet/[email protected] | ||
|
||
- name: Execute Integration Tests | ||
shell: pwsh | ||
run: ./Build.ps1 -IntegrationTests | ||
|
||
- name: Upload test results | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: test-results | ||
path: artifacts/Tests/ | ||
retention-days: 1 | ||
|
||
Codecov: | ||
needs: [UnitTests, IntegrationTests] | ||
runs-on: windows-latest | ||
steps: | ||
- name: Download test results | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: test-results | ||
path: artifacts/Tests/ | ||
|
||
- name: Setup MSBuild | ||
uses: microsoft/setup-msbuild@v1 | ||
- name: Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
files: '*.OpenCover.xml' | ||
|
||
- name: Setup NuGet.exe | ||
uses: NuGet/[email protected] | ||
Documentation: | ||
needs: [Build] | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Execute Integration Tests | ||
shell: pwsh | ||
run: ./Build.ps1 -IntegrationTests | ||
- name: Generate docFx | ||
shell: pwsh | ||
run: ./Build.ps1 -GenerateDocs | ||
|
||
- name: Upload documentation results | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: dcoumentation | ||
path: artifacts/Documentation/ | ||
retention-days: 1 | ||
|
||
- name: Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
files: '*.OpenCover.xml' | ||
Publish: | ||
needs: [UnitTests, IntegrationTests] | ||
needs: [Build, UnitTests, IntegrationTests] | ||
if: ${{ github.event_name == 'push' }} | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup MSBuild | ||
uses: microsoft/setup-msbuild@v1 | ||
|
||
- name: Setup NuGet.exe | ||
uses: NuGet/[email protected] | ||
|
||
- name: Build | ||
shell: pwsh | ||
run: ./Build.ps1 -Build | ||
- name: Download package artefacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: packages | ||
path: artifacts/Packages/ | ||
|
||
- name: Pack & Publish | ||
- name: Publish packages | ||
shell: pwsh | ||
run: ./Build.ps1 -Pack -Publish | ||
run: ./Build.ps1 -Publish |