Skip to content

Commit 13e178d

Browse files
jaybarden1jbarden
andauthored
bring over offline changes (#1)
Co-authored-by: Jason Barden <[email protected]>
1 parent 503283e commit 13e178d

File tree

86 files changed

+4781
-407
lines changed

Some content is hidden

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

86 files changed

+4781
-407
lines changed

β€Ž.editorconfigβ€Ž

Lines changed: 190 additions & 190 deletions
Large diffs are not rendered by default.

β€Ž.github/dependabot.ymlβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7-

β€Ž.github/workflows/dotnet.ymlβ€Ž

Lines changed: 47 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,59 @@
1-
# This workflow will build a .NET project
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3-
41
name: .NET
52

63
on:
4+
workflow_dispatch:
75
push:
86
branches: [ "main" ]
97
pull_request:
108
branches: [ "main" ]
119

1210
jobs:
1311
build:
12+
name: Build and analyze
13+
runs-on: windows-latest
14+
15+
steps:
16+
- name: Set up JDK
17+
uses: actions/[email protected]
18+
with:
19+
java-version: 17
20+
distribution: 'zulu'
1421

15-
runs-on: ubuntu-latest
22+
- name: Checkout
23+
uses: actions/[email protected]
24+
with:
25+
fetch-depth: 0
1626

17-
steps:
18-
- uses: actions/checkout@v4
19-
20-
- name: Setup .NET
21-
uses: actions/setup-dotnet@v4
22-
with:
23-
dotnet-version: 9.0.x
24-
25-
- name: Delete nuget*.config files
26-
run: rm -f nuget*.config
27-
28-
- name: Restore dependencies
29-
run: dotnet restore
30-
31-
- name: Build
32-
run: dotnet build --no-restore
33-
34-
- name: Test
35-
run: dotnet test --no-build --verbosity normal
27+
- name: πŸ›  Cache SonarQube Cloud packages
28+
uses: actions/[email protected]
29+
with:
30+
path: ~\sonar\cache
31+
key: ${{ runner.os }}-sonar
32+
restore-keys: ${{ runner.os }}-sonar
33+
34+
- name: πŸ›  Cache SonarQube Cloud scanner
35+
id: cache-sonar-scanner
36+
uses: actions/[email protected]
37+
with:
38+
path: .\.sonar\scanner
39+
key: ${{ runner.os }}-sonar-scanner
40+
restore-keys: ${{ runner.os }}-sonar-scanner
41+
42+
- name: πŸ›  Install SonarQube Cloud scanner
43+
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
44+
shell: powershell
45+
run: |
46+
New-Item -Path .\.sonar\scanner -ItemType Directory
47+
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
48+
49+
- name: πŸ” Restore, πŸ›  Build and πŸ§ͺ Test with ☁️ SonarCloud / Qube project - ${{ vars.SONAR_PROJECT_NAME }}
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
53+
shell: powershell
54+
run: |
55+
dotnet tool install --global dotnet-coverage
56+
.\.sonar\scanner\dotnet-sonarscanner begin /k:"astar-development_${{ github.event.repository.name }}" /o:"astar-development" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml /d:sonar.scanner.scanAll=false /d:sonar.scanner.skipJreProvisioning=true
57+
dotnet build --configuration Release
58+
dotnet-coverage collect 'dotnet test --filter "FullyQualifiedName!~Tests.EndToEnd"' -f xml -o 'coverage.xml'
59+
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: πŸš€ Publish NuGet Package
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
12+
steps:
13+
- name: 🧾 Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: πŸ›  Setup .NET
17+
uses: actions/setup-dotnet@v4
18+
with:
19+
dotnet-version: '9.x'
20+
21+
- name: πŸ” Restore dependencies
22+
run: dotnet restore
23+
24+
- name: πŸ›  Build solution
25+
run: dotnet build --configuration Release
26+
27+
- name: πŸ“¦ Pack NuGet package for ${{ github.event.repository.name }}
28+
run: dotnet pack ./src/**/*.csproj --configuration Release --output ./nupkg
29+
30+
- name: πŸš€ Publish to NuGet.org
31+
run: dotnet nuget push ./nupkg/*.nupkg --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NuGet_API_Key }} #
32+

β€Ž.idea/.idea.AStar.Dev.Infrastructure.FilesDb/.idea/.gitignoreβ€Ž

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ž.idea/.idea.AStar.Dev.Infrastructure.FilesDb/.idea/.nameβ€Ž

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ž.idea/.idea.AStar.Dev.Infrastructure.FilesDb/.idea/encodings.xmlβ€Ž

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ž.idea/.idea.AStar.Dev.Infrastructure.FilesDb/.idea/indexLayout.xmlβ€Ž

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ž.idea/.idea.AStar.Dev.Infrastructure.FilesDb/.idea/inspectionProfiles/Project_Default.xmlβ€Ž

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ž.idea/.idea.AStar.Dev.Infrastructure.FilesDb/.idea/misc.xmlβ€Ž

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)