This repository was archived by the owner on May 12, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : setup-env
2+ description : Setup Environment
3+
4+ runs :
5+ using : composite
6+ steps :
7+ - name : Setup .NET
8+ uses : actions/setup-dotnet@v4
9+ with :
10+ dotnet-version : ' 9.0.x'
11+
12+ - name : Print .NET version and SDKs
13+ shell : bash
14+ run : |
15+ dotnet --version
16+ dotnet --list-sdks
Original file line number Diff line number Diff line change 1+ ---
2+ version : 2
3+ updates :
4+ - package-ecosystem : nuget
5+ directory : " /"
6+ schedule :
7+ interval : daily
8+ groups :
9+ nuget :
10+ patterns :
11+ - " *"
12+ - package-ecosystem : github-actions
13+ directory : " /"
14+ schedule :
15+ interval : daily
16+ groups :
17+ actions :
18+ patterns :
19+ - " *"
Original file line number Diff line number Diff line change @@ -3,10 +3,12 @@ name: Build & Tests
33on :
44 push :
55 branches :
6- - master
6+ - main
77 pull_request :
88 branches :
9- - master
9+ - ' *'
10+ workflow_dispatch :
11+
1012jobs :
1113 build :
1214 runs-on : ubuntu-latest
@@ -15,25 +17,12 @@ jobs:
1517 uses : actions/checkout@v2
1618 with :
1719 fetch-depth : 0
18- - name : Setup dotnet 6.0
19- uses : actions/setup-dotnet@v4
20- with :
21- dotnet-version : ' 6.0.x'
22- - name : Setup dotnet 8.0
23- uses : actions/setup-dotnet@v4
24- with :
25- dotnet-version : ' 8.0.100'
26- - name : Build and Test
27- run : ./Build.ps1
28- shell : pwsh
29- # - name: Push to MyGet
30- # env:
31- # NUGET_URL: https://www.myget.org/F/NG.Mediator-ci/api/v3/index.json
32- # NUGET_API_KEY: ${{ secrets.MYGET_NG.Mediator_CI_API_KEY }}
33- # run: ./Push.ps1
34- # shell: pwsh
35- - name : Artifacts
36- uses : actions/upload-artifact@v4
37- with :
38- name : artifacts
39- path : artifacts/**/*
20+
21+ - name : Setup Environment
22+ uses : ./.github/actions/setup-env
23+
24+ - name : Build
25+ run : dotnet build --configuration Debug --no-incremental
26+
27+ - name : Test
28+ run : dotnet test --no-build
Original file line number Diff line number Diff line change 1+ name : Build Artifacts
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - ' *'
10+ workflow_dispatch :
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v2
18+ with :
19+ fetch-depth : 0
20+
21+ - name : Setup Environment
22+ uses : ./.github/actions/setup-env
23+
24+ - name : Build and Test
25+ run : dotnet pack .\src\NG.Mediator\NG.Mediator.csproj -c Release -o ".\artifacts"
26+
27+ - name : Artifacts
28+ uses : actions/upload-artifact@v4
29+ with :
30+ name : ' artifacts.zip'
31+ path : artifacts/**/*
32+
33+ # on:
34+ # push:
35+ # tags:
36+ # - '*.*.*'
37+ # jobs:
38+ # build:
39+ # strategy:
40+ # matrix:
41+ # os: [ubuntu-latest]
42+ # fail-fast: false
43+ # runs-on: ubuntu-latest
44+ # steps:
45+ # - name: Checkout
46+ # uses: actions/checkout@v2
47+ # with:
48+ # fetch-depth: 0
49+ # - name: Setup dotnet 6.0
50+ # uses: actions/setup-dotnet@v4
51+ # with:
52+ # dotnet-version: '6.0.x'
53+ # - name: Setup dotnet 8.0
54+ # uses: actions/setup-dotnet@v4
55+ # with:
56+ # dotnet-version: '8.0.100'
57+ # - name: Build and Test
58+ # run: ./Build.ps1
59+ # shell: pwsh
60+ # - name: Push to MyGet
61+ # env:
62+ # NUGET_URL: https://www.myget.org/F/NG.Mediator-ci/api/v3/index.json
63+ # NUGET_API_KEY: ${{ secrets.MYGET_NG.Mediator_CI_API_KEY }}
64+ # run: ./Push.ps1
65+ # shell: pwsh
66+ # - name: Push to NuGet
67+ # env:
68+ # NUGET_URL: https://api.nuget.org/v3/index.json
69+ # NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
70+ # run: ./Push.ps1
71+ # shell: pwsh
72+ # - name: Artifacts
73+ # uses: actions/upload-artifact@v4
74+ # with:
75+ # name: artifacts
76+ # path: artifacts/**/*
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ {
2+ "folders" : [
3+ {
4+ "path" : " .."
5+ }
6+ ],
7+ "settings" : {}
8+ }
Original file line number Diff line number Diff line change 1+ {
2+ "recommendations" : [
3+ " ms-dotnettools.csharp" ,
4+ " ms-dotnettools.vscodeintellicode-csharp" ,
5+ " ms-dotnettools.vscode-dotnet-runtime" ,
6+ " github.vscode-github-actions"
7+ ]
8+ }
Original file line number Diff line number Diff line change 1+ {
2+ "dotnet.defaultSolution" : " NG.Mediator.sln"
3+ }
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments