Skip to content

Commit

Permalink
Net7 (#7)
Browse files Browse the repository at this point in the history
* update to natively support .NET 7 (#6)

Co-authored-by: Robert Angers <rangers@stratecglobal.com>

* feat: target net6.0 and net7.0 exclusively

older versions remain available, no reason to keep old code here

* chore: remove old versions from GitHub Actions

* chore: update deps

* chore: rename samples to examples

(for renovate config)

* chore: add renovate

* chore: cleanup code
  • Loading branch information
JohnCampionJr authored Jul 7, 2023
1 parent 68916b7 commit 95d2546
Show file tree
Hide file tree
Showing 236 changed files with 1,276 additions and 40,996 deletions.
2 changes: 1 addition & 1 deletion .codacy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
exclude_paths:
- 'samples/**/*'
- 'examples/**/*'
- 'tests/**/*'
- 'build.ps1'
- 'README.md'
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ dotnet_naming_style.pascal_case_style.capitalization = pascal_case
dotnet_diagnostic.RS2008.severity = none

# IDE0073: File header
dotnet_diagnostic.IDE0073.severity = warning
file_header_template = Licensed to the .NET Foundation under one or more agreements.\nThe .NET Foundation licenses this file to you under the MIT license.\nSee the LICENSE file in the project root for more information.
# dotnet_diagnostic.IDE0073.severity = warning
# file_header_template = Licensed to the .NET Foundation under one or more agreements.\nThe .NET Foundation licenses this file to you under the MIT license.\nSee the LICENSE file in the project root for more information.

# IDE0035: Remove unreachable code
dotnet_diagnostic.IDE0035.severity = warning
Expand Down
37 changes: 0 additions & 37 deletions .github/disabled/dotnet-core-basic.yml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/disabled/dotnet-core-coverage-win.yml

This file was deleted.

56 changes: 0 additions & 56 deletions .github/disabled/dotnet-core-coverage.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/disabled/get-version-test.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/disabled/pr-labeler.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/disabled/release-drafter.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"extends": [
"config:base",
"group:allNonMajor",
":semanticCommitTypeAll(chore)",
":ignoreModulesAndTests"
],
"meteor": {
"enabled": false
},
"rangeStrategy": "bump",
"nuget": {
"commitMessageTopic": "{{prettyDepType}} {{depName}}"
},
"packageRules": [
{
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
"automerge": true,
"automergeSchedule": ["after 1am and before 2am"],
"schedule": ["after 2am and before 3am"]
}
]
}
52 changes: 0 additions & 52 deletions .github/workflows/dotnet-core-multi-os-test.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: .NET Core Coverage (Ubuntu)
name: .NET Coverage (Ubuntu)

on:
push:
# branches:
# branches-ignore:
# branches:
# branches-ignore:
pull_request:
# branches:
# branches-ignore:
# branches:
# branches-ignore:

env:
# Disable the .NET logo in the console output.
Expand All @@ -21,32 +21,31 @@ env:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ubuntu-20.04

steps:
- name: Configure MongoDB (Ubuntu)
run: sudo systemctl start mongod
- name: Checkout
uses: actions/checkout@v2
# If you want to specify a particular version, use this. Otherwise, will use the Runner's installed version
# If you want to specify a particular version, use this. Otherwise, will use the Runner's installed version
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
# These two options cannot be combined because the logger causes duplicate coverage reports to go to CodeCov
# https://github.com/coverlet-coverage/coverlet/issues/733
# if you want the test results, best to run separately
# - name: Test
# - name: Test
# run: dotnet test --logger trx --results-directory ${{env.BUILD_ARTIFACT_PATH}}/test-results
- name: Test with coverage
run: dotnet test --results-directory ${{env.BUILD_ARTIFACT_PATH}}/coverage --collect "XPlat Code Coverage" --settings CodeCoverage.runsettings
run: dotnet test --results-directory ${{env.BUILD_ARTIFACT_PATH}}/coverage --collect "XPlat Code Coverage" --settings CodeCoverage.runsettings
- name: Upload coverage report
uses: codecov/codecov-action@v1.0.13
with:
Expand Down
Loading

0 comments on commit 95d2546

Please # to comment.