Skip to content

Commit

Permalink
Feature/optimize cd pipeline, include coverage reports for .net 7 (#241)
Browse files Browse the repository at this point in the history
## Target
<!--
  Why are you making this change?
 -->
Feature/optimize cd pipeline, include coverage reports for .net 7
#### Open Questions
<!-- OPTIONAL
- [ ] Use the GitHub checklists to spark discussion on issues that may
arise from your approach. Please tick the box and explain your answer.
-->

## Checklist
<!--
It serves as a gentle reminder for common tasks. Confirm it's done and
check everything that applies.
-->
- [ ] Documentation updated
- [ ] Tests cover new or modified code
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] New dependencies added
- [ ] Includes breaking changes
- [ ] Version bumped

## Visuals
<!-- OPTIONAL
Show results both before and after this change. When the output changes,
it can be a screenshot of a trace, metric, or log illustrating the
change.
-->
  • Loading branch information
MaxymGorn authored Oct 23, 2023
1 parent 862e778 commit 9f28b19
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ jobs:
working-directory: src/Cropper.Blazor/Cropper.Blazor.UnitTests

- name: Coverage
uses: codecov/[email protected].1
uses: codecov/[email protected].4
with:
file: coverage.net6.0.cobertura.xml
files: coverage.net6.0.cobertura.xml, coverage.net7.0.cobertura.xml
fail_ci_if_error: true
verbose: true

Expand Down Expand Up @@ -107,9 +107,21 @@ jobs:
folder: release/wwwroot
repository-name: CropperBlazor/CropperBlazor.github.io

install-maui-workloads:
name: Install MAUI Workloads
runs-on: windows-latest

steps:
- uses: actions/checkout@v3

- name: Install MAUI Workloads
run: |
dotnet workload install maui --ignore-failed-sources
demo-projects-build:
name: Build Demo Projects
runs-on: windows-latest
needs: install-maui-workloads

strategy:
matrix:
Expand All @@ -123,10 +135,6 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}

- name: Install MAUI Workloads
run: |
dotnet workload install maui --ignore-failed-sources

- name: Restore dependencies for Cropper.Blazor.Demo
run: dotnet restore
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ jobs:
working-directory: src/Cropper.Blazor/Cropper.Blazor.UnitTests

- name: Coverage
uses: codecov/[email protected].1
uses: codecov/[email protected].4
with:
file: coverage.net6.0.cobertura.xml
files: coverage.net6.0.cobertura.xml, coverage.net7.0.cobertura.xml
fail_ci_if_error: true
verbose: true

Expand Down

0 comments on commit 9f28b19

Please sign in to comment.