chore(deps): update xunit-dotnet monorepo #555
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: Dev Build | |
on: | |
push: | |
branches: [ dev ] | |
pull_request: | |
branches: [ dev, master ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
- name: Cache .NET dependencies | |
uses: actions/cache@v3 | |
with: | |
path: '~/.nuget/packages' | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build -c Release --no-restore | |
- name: Test | |
run: dotnet test -c Release --no-build | |
todo: | |
needs: [ build ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "TODO to Issue" | |
uses: alstr/todo-to-issue-action@v4.8.1 | |
id: "todo" | |
with: | |
COMMENT_MARKER: "//" | |
TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CLOSE_ISSUES: false | |
coverage: | |
needs: [ build ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
- name: Cache .NET dependencies | |
uses: actions/cache@v3 | |
with: | |
path: '~/.nuget/packages' | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build -c Release --no-restore | |
- name: Test | |
run: dotnet test --collect:"XPlat Code Coverage" --settings coverlet.runsettings -c Release --no-build | |
- name: Publish code coverage | |
uses: paambaati/codeclimate-action@v3.2.0 | |
env: | |
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} | |
with: | |
coverageLocations: "**/coverage.info:lcov" |