Skip to content

Commit 2cdb44d

Browse files
committed
Initial commit
0 parents  commit 2cdb44d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+3482
-0
lines changed

.editorconfig

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[*]
2+
indent_style = space
3+
charset = utf-8
4+
5+
[*.{csproj,yml,yaml,conf,targets}]
6+
indent_size = 2
7+
8+
[Directory.Build.props]
9+
indent_size = 2
10+
11+
[*.{css,scss,js,ps1}]
12+
indent_size = 4
13+
14+
[*.cs]
15+
indent_size = 4
16+
tab_width = 4
17+
max_line_length = off

.gitattributes

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Set the default behavior, in case users don't have core.autocrlf set.
2+
* text=auto
3+
4+
# Files that should always be normalized and converted to native line endings on checkout.
5+
*.js text
6+
*.json text
7+
*.ts text
8+
*.tsx text
9+
*.md text
10+
*.sh text eol=lf
11+
*.conf text eol=lf
12+
*.yml text eol=lf
13+
*.yaml text eol=lf
14+
*.Dockerfile text eol=lf
15+
LICENSE text eol=lf

.github/workflows/ci.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: CI build
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
pack:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
18+
- uses: actions/setup-dotnet@v2
19+
with:
20+
dotnet-version: 6.0.x
21+
22+
- run: ./build.ps1 --target=pack
23+
shell: pwsh
24+
25+
- uses: actions/upload-artifact@v3
26+
with:
27+
name: output-${{ github.run_number }}-${{ github.run_attempt }}
28+
path: .output/
29+
retention-days: 1
30+
31+
test:
32+
runs-on: ${{ matrix.os }}
33+
needs: [pack]
34+
strategy:
35+
matrix:
36+
os: [ubuntu-latest, macos-latest, windows-latest]
37+
steps:
38+
- uses: actions/checkout@v3
39+
with:
40+
fetch-depth: 0
41+
42+
- uses: actions/setup-dotnet@v2
43+
with:
44+
dotnet-version: |
45+
3.1.x
46+
6.0.x
47+
48+
- uses: actions/download-artifact@v3
49+
with:
50+
name: output-${{ github.run_number }}-${{ github.run_attempt }}
51+
path: .output/
52+
53+
- run: ./build.ps1 --target=test --exclusive
54+
shell: pwsh
55+
56+
clean:
57+
if: always()
58+
runs-on: ubuntu-latest
59+
needs: [test]
60+
steps:
61+
- uses: geekyeggo/delete-artifact@v1
62+
with:
63+
name: output-${{ github.run_number }}-${{ github.run_attempt }}

.github/workflows/release.yml

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: NuGet push
2+
3+
on:
4+
push:
5+
tags:
6+
- "*.*.*"
7+
8+
jobs:
9+
pack:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
16+
- uses: actions/setup-dotnet@v2
17+
with:
18+
dotnet-version: 6.0.x
19+
20+
- run: ./build.ps1 --target=pack
21+
shell: pwsh
22+
23+
- uses: actions/upload-artifact@v3
24+
with:
25+
name: output-${{ github.run_number }}-${{ github.run_attempt }}
26+
path: .output/
27+
retention-days: 1
28+
29+
test:
30+
runs-on: ${{ matrix.os }}
31+
needs: [pack]
32+
strategy:
33+
matrix:
34+
os: [ubuntu-latest, macos-latest, windows-latest]
35+
steps:
36+
- uses: actions/checkout@v3
37+
with:
38+
fetch-depth: 0
39+
40+
- uses: actions/setup-dotnet@v2
41+
with:
42+
dotnet-version: |
43+
3.1.x
44+
6.0.x
45+
46+
- uses: actions/download-artifact@v3
47+
with:
48+
name: output-${{ github.run_number }}-${{ github.run_attempt }}
49+
path: .output/
50+
51+
- run: ./build.ps1 --target=test --exclusive
52+
shell: pwsh
53+
54+
push:
55+
runs-on: ubuntu-latest
56+
needs: [test]
57+
steps:
58+
- uses: actions/checkout@v3
59+
with:
60+
fetch-depth: 0
61+
62+
- uses: actions/setup-dotnet@v2
63+
with:
64+
dotnet-version: 6.0.x
65+
66+
- uses: actions/download-artifact@v3
67+
with:
68+
name: output-${{ github.run_number }}-${{ github.run_attempt }}
69+
path: .output/
70+
71+
- run: ./build.ps1 --target=push --exclusive --nuget-api-key=${{ secrets.nuget_api_key }} --nuget-source=${{ secrets.nuget_source }}
72+
shell: pwsh
73+
74+
clean:
75+
if: always()
76+
runs-on: ubuntu-latest
77+
needs: [push]
78+
steps:
79+
- uses: geekyeggo/delete-artifact@v1
80+
with:
81+
name: output-${{ github.run_number }}-${{ github.run_attempt }}

0 commit comments

Comments
 (0)