Skip to content

Commit c627268

Browse files
committed
Migrate BackgroundTasks
0 parents  commit c627268

40 files changed

+1760
-0
lines changed

.config/dotnet-tools.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"dotnet-validate": {
6+
"version": "0.0.1-preview.304",
7+
"commands": [
8+
"dotnet-validate"
9+
]
10+
}
11+
}
12+
}

.github/workflows/ci.yaml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [main, dev]
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Setup .NET
11+
uses: actions/setup-dotnet@v1
12+
with:
13+
dotnet-version: "7.0.306"
14+
- name: Restore dependencies
15+
run: dotnet restore
16+
- name: Build
17+
run: dotnet build --no-restore
18+
- name: Test
19+
run: dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage"
20+
- name: Codecov
21+
uses: codecov/codecov-action@v3
22+
publish_packages:
23+
needs: test
24+
runs-on: ubuntu-latest
25+
env:
26+
ContinuousIntegrationBuild: true
27+
steps:
28+
- uses: actions/checkout@v2
29+
- name: Setup .NET
30+
uses: actions/setup-dotnet@v1
31+
with:
32+
dotnet-version: "7.0.306"
33+
- name: Restore dependencies
34+
run: dotnet restore
35+
- name: Restore tools
36+
run: dotnet tool restore
37+
- name: Build
38+
run: dotnet build --configuration Release --no-restore --version-suffix="ci.${GITHUB_RUN_NUMBER}"

.github/workflows/release.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
on:
3+
push:
4+
tags: [v*]
5+
jobs:
6+
publish_packages:
7+
runs-on: ubuntu-latest
8+
env:
9+
ContinuousIntegrationBuild: true
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Setup .NET
13+
uses: actions/setup-dotnet@v1
14+
with:
15+
dotnet-version: "7.0.306"
16+
- name: Restore dependencies
17+
run: dotnet restore
18+
- name: Restore tools
19+
run: dotnet tool restore
20+
- name: Build
21+
run: dotnet build --configuration Release --no-restore /p:version="${GITHUB_REF_NAME//v/}"
22+
- name: NuGet Push
23+
run: Get-Item pkgs/*.nupkg |% { dotnet nuget push $_ --source ${{ secrets.NUGET_SOURCE }} --api-key ${{ secrets.NUGET_APIKEY }} }
24+
shell: pwsh

0 commit comments

Comments
 (0)