Skip to content

Commit

Permalink
Add .net8.0 rc1 support (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
smokedlinq committed Sep 16, 2023
1 parent 60c682b commit ce09efc
Show file tree
Hide file tree
Showing 17 changed files with 307 additions and 300 deletions.
22 changes: 0 additions & 22 deletions .cm/gitstream.cm

This file was deleted.

26 changes: 18 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
groups:
GitHub Actions:
patterns:
- "*"

- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "monthly"
# Maintain dependencies for NuGet
- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "monthly"
groups:
.NET NuGet Packages:
patterns:
- "*"
41 changes: 41 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name-template: "$RESOLVED_VERSION"
tag-template: "$RESOLVED_VERSION"
categories:
- title: "🚀 Features"
labels:
- "feature"
- "enhancement"
- "new submodule"
- title: "🐛 Bug Fixes"
labels:
- "fix"
- "bugfix"
- "bug"
- title: "🧰 Maintenance"
label: "chore"
change-template: "- $TITLE (#$NUMBER)"
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- "major"
minor:
labels:
- "minor"
patch:
labels:
- "patch"
default: minor
autolabeler:
- label: "bug"
title:
- "/fix/i"
- label: "enhancement"
title:
- "/update/i"
- label: "new submodule"
title:
- "/add.+module/i"
- "/new.+module/i"
template: |
$CHANGES
100 changes: 100 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: read
security-events: write

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

env:
DOTNET_NOLOGO: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: zulu

- name: Setup .NET 8.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.100-rc.1.23455.8

- name: Setup NuGet 6.x
uses: nuget/setup-nuget@v1
with:
nuget-version: 6.x

- 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: pwsh
run: |
New-Item -Path ./.sonar/scanner -ItemType Directory
dotnet tool update dotnet-sonarscanner --tool-path ./.sonar/scanner
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: csharp

- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
./.sonar/scanner/dotnet-sonarscanner begin /k:"smokedlinq_aemediator" /o:"smokedlinq-github" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths=**/*.opencover.xml
dotnet build
dotnet test /property:CollectCoverage=true /property:CoverletOutputFormat=opencover /property:CoverletOutput=./coverage/
./.sonar/scanner/dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:csharp"

- uses: snyk/actions/dotnet@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: >-
--all-projects
--detection-depth=8
--sarif-file-output=snyk.sarif
command: test

- uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif
107 changes: 0 additions & 107 deletions .github/workflows/ci.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/gitstream.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]

concurrency:
group: release-drafter

jobs:
update-release-draft:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
with:
commitish: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit ce09efc

Please sign in to comment.