Merge pull request #243 from gitfool/renovate/minor #600
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: ci | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
env: | |
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: dockfool/cake-docker:latest | |
steps: | |
- name: Checkout source | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
filter: tree:0 | |
show-progress: false | |
- name: Cache packages | |
uses: actions/[email protected] | |
with: | |
path: ${{ env.NUGET_PACKAGES }} | |
key: ${{ runner.os }}-nuget-${{ hashFiles('.config/dotnet-tools.json', '**/packages.lock.json') }} | |
restore-keys: ${{ runner.os }}-nuget- | |
- name: Docker login | |
if: github.event_name != 'pull_request' | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: Setup buildx | |
uses: docker/[email protected] | |
- name: Export runtime | |
uses: crazy-max/[email protected] | |
- name: Cake build | |
run: dotnet tool restore && dotnet cake --verbosity=verbose --publish=true | |
- name: Tests report | |
if: always() | |
uses: mikepenz/[email protected] | |
with: | |
check_name: tests | |
fail_on_failure: true | |
require_tests: true | |
report_paths: "Artifacts/Tests/*/TestResults.xml" | |
- name: Coverage report | |
uses: 5monkeys/cobertura-action@v14 | |
with: | |
minimum_coverage: 80 | |
report_name: coverage | |
show_class_names: true | |
show_line: true | |
show_branch: true | |
skip_covered: false | |
path: Artifacts/Tests/Coverage/Cobertura.xml |