Merge pull request #102 from danheron/fix/cell-click-time #91
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
name: build-test-mudcalendar | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ dev ] | |
jobs: | |
build-test: | |
name: Build and test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dotnet-version: [ '6.0.x', '7.0.x' ] | |
steps: | |
- name: Checkout MudCalendar repository | |
uses: actions/checkout@v3 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
- name: Restore | |
run: dotnet restore Heron.MudCalendarWithDocs.sln | |
- name: Build | |
run: dotnet build -c Release -m:1 --no-restore | |
working-directory: ./Heron.MudCalendar | |
- name: Build | |
run: dotnet build -c Release -m:1 --no-restore | |
working-directory: ./Heron.MudCalendar.UnitTests | |
- name: Test | |
run: dotnet test -c Release --no-build --no-restore --blame-hang --blame-hang-timeout 60s /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:ExcludeByAttribute='ExcludeFromCodeCoverageAttribute' /p:Include='[Heron.MudCalendar]*' /p:CoverletOutput='./TestResults/' --logger trx --results-directory "TestResults-${{ matrix.dotnet-version }}" | |
working-directory: ./Heron.MudCalendar.UnitTests | |
- name: Publish coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: coverage.cobertura.xml |