1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-09 23:25:43 +00:00

Compare commits

...

16 Commits

Author SHA1 Message Date
8cdbfcfe0d
Merge branch 'release/4.0.0' into feature/generic_math 2024-02-17 15:31:02 +00:00
29cd725b66
Merge branch 'main' into release/4.0.0 2024-02-17 15:30:41 +00:00
4dc5fc1148
[ci skip] docs: update license year 2024-02-17 15:30:02 +00:00
89de426d9a
ci: search for files with codecov 2024-02-17 03:04:19 +00:00
43128c4c64
Merge branch 'main' into release/4.0.0 2024-02-17 00:29:14 +00:00
22da9aa769
fix(ci): workflow should use 'with' not 'env' 2024-02-17 00:28:58 +00:00
1c09081240
Merge branch 'main' into release/4.0.0 2024-02-12 15:09:35 +00:00
5e60019a0d
[ci skip] ci: downgrade codecov-action to 4.0.0 2024-02-12 15:09:15 +00:00
447323f4d1
Merge branch 'main' into release/4.0.0 2024-02-12 14:45:56 +00:00
9a506a6b29
[ci skip] fix(ci): output xml from dotCover 2024-02-12 14:45:42 +00:00
a71cb73df7
[ci skip] ci(test): add dotCover output to codecov upload 2024-02-12 14:42:44 +00:00
485501cfc0
ci(test): add dotCover output to codecov upload 2024-02-12 14:42:11 +00:00
22aaa96c23
Merge branch 'main' into release/4.0.0 2024-02-12 10:23:15 +00:00
1daa8ffd56
[ci skip] fix(ci): remove shell field from dotcover install step 2024-02-12 10:23:03 +00:00
6472c0fc84
Merge branch 'main' into release/4.0.0 2024-02-12 10:21:06 +00:00
ac82200303
[ci skip] ci: switch to codecov for coverage 2024-02-12 10:20:35 +00:00
5 changed files with 14 additions and 64 deletions

View File

@ -33,6 +33,9 @@ jobs:
- name: Restore dependencies
run: dotnet restore
- name: Install dotCover
run: dotnet tool install --global JetBrains.dotCover.GlobalTool
- name: Build
run: dotnet build --no-restore --configuration Release
@ -44,3 +47,12 @@ jobs:
- name: Test .NET 8
run: dotnet test --no-build --verbosity normal --configuration Release --framework net8.0
- name: Collect coverage
run: dotnet dotcover test --dcReportType=XML
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: oliverbooth/X10D

View File

@ -1,61 +0,0 @@
name: SonarCloud
on:
push:
branches:
- main
workflow_dispatch:
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
sonarcloud:
name: SonarCloud Analysis
runs-on: windows-latest
steps:
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'zulu'
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
path: ~\sonar\cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache SonarCloud scanner
id: cache-sonar-scanner
uses: actions/cache@v3
with:
path: .\.sonar\scanner
key: ${{ runner.os }}-sonar-scanner
restore-keys: ${{ runner.os }}-sonar-scanner
- name: Install SonarCloud scanner
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
shell: powershell
run: |
New-Item -Path .\.sonar\scanner -ItemType Directory
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
- name: Install dotCover
shell: powershell
run: |
dotnet tool install --global JetBrains.dotCover.GlobalTool
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
shell: powershell
run: |
.\.sonar\scanner\dotnet-sonarscanner begin /k:"X10D" /o:"oliverbooth" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.dotcover.reportsPaths=dotCover.Output.html
dotnet build --no-incremental
dotnet dotcover test --dcReportType=HTML
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2019-2023 Oliver Booth
Copyright (c) 2019-2024 Oliver Booth
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
<p align="center">
<a href="https://github.com/oliverbooth/X10D/actions/workflows/dotnet.yml"><img src="https://img.shields.io/github/actions/workflow/status/oliverbooth/X10D/dotnet.yml?style=flat-square" alt="GitHub Workflow Status" title="GitHub Workflow Status"></a>
<a href="https://github.com/oliverbooth/X10D/issues"><img src="https://img.shields.io/github/issues/oliverbooth/X10D?style=flat-square" alt="GitHub Issues" title="GitHub Issues"></a>
<a href="https://sonarcloud.io/dashboard?id=X10D"><img src="https://img.shields.io/sonar/coverage/X10D?server=https%3A%2F%2Fsonarcloud.io&style=flat-square" alt="Coverage"></a>
<a href="https://app.codecov.io/gh/oliverbooth/X10D/"><img src="https://img.shields.io/codecov/c/github/oliverbooth/X10D?style=flat-square" alt="Coverage"></a>
<a href="https://www.nuget.org/packages/X10D/"><img src="https://img.shields.io/nuget/dt/X10D?style=flat-square" alt="NuGet Downloads" title="NuGet Downloads"></a>
<a href="https://www.nuget.org/packages/X10D/"><img src="https://img.shields.io/nuget/v/X10D?label=stable&style=flat-square" alt="Stable Version" title="Stable Version"></a>
<a href="https://www.nuget.org/packages/X10D/"><img src="https://img.shields.io/nuget/vpre/X10D?label=nightly&style=flat-square" alt="Nightly Version" title="Nightly Version"></a>

View File

@ -33,7 +33,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Workflows", "Workflows", "{
.github\workflows\nightly.yml = .github\workflows\nightly.yml
.github\workflows\prerelease.yml = .github\workflows\prerelease.yml
.github\workflows\release.yml = .github\workflows\release.yml
.github\workflows\sonarcloud.yml = .github\workflows\sonarcloud.yml
.github\workflows\source_validator.yml = .github\workflows\source_validator.yml
EndProjectSection
EndProject