Skip to content

Commit d9a3f9e

Browse files
authored
Merge pull request #1 from astar-development/features/initial-code-migration
Initial Commit
2 parents 5fe7fd0 + 8b57760 commit d9a3f9e

25 files changed

+372
-275
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,4 +273,4 @@ dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
273273
dotnet_style_qualification_for_field = false:silent
274274
dotnet_style_qualification_for_property = false:error
275275
dotnet_style_qualification_for_method = false:error
276-
dotnet_style_qualification_for_event = false:error
276+
dotnet_style_qualification_for_event = false:error

.github/workflows/dotnet.yml

Lines changed: 58 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,70 @@
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+
env:
15+
ProjectName: 'AStar.Dev.Api.Client.Sdk.Shared'
16+
RepositoryName: 'astar-dev-api-client-sdk-shared'
17+
steps:
18+
- name: Set up JDK
19+
uses: actions/[email protected]
20+
with:
21+
java-version: 17
22+
distribution: 'zulu'
1423

15-
runs-on: ubuntu-latest
24+
- name: Checkout
25+
uses: actions/[email protected]
26+
with:
27+
fetch-depth: 0
28+
29+
- name: Cache SonarCloud packages
30+
uses: actions/[email protected]
31+
with:
32+
path: ~\sonar\cache
33+
key: ${{ runner.os }}-sonar
34+
restore-keys: ${{ runner.os }}-sonar
35+
36+
- name: Cache SonarCloud scanner
37+
id: cache-sonar-scanner
38+
uses: actions/[email protected]
39+
with:
40+
path: .\.sonar\scanner
41+
key: ${{ runner.os }}-sonar-scanner
42+
restore-keys: ${{ runner.os }}-sonar-scanner
43+
44+
- name: Install SonarCloud scanner
45+
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
46+
shell: powershell
47+
run: |
48+
New-Item -Path .\.sonar\scanner -ItemType Directory
49+
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
50+
51+
- name: Build and analyze
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
55+
shell: powershell
56+
run: |
57+
dotnet tool install --global dotnet-coverage
58+
.\.sonar\scanner\dotnet-sonarscanner begin /k:"astar-development_${{ env.RepositoryName }}" /o:"astar-development" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
59+
dotnet build --configuration Release
60+
dotnet-coverage collect 'dotnet test --filter "FullyQualifiedName!~Acceptance.Tests"' -f xml -o 'coverage.xml'
61+
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
62+
63+
- name: Pack NuGet package
64+
if: github.ref == 'refs/heads/main'
65+
run: dotnet pack .\src\${{ env.ProjectName }}\${{ env.ProjectName }}.csproj
66+
67+
- name: Push to NuGet
68+
if: github.ref == 'refs/heads/main'
69+
run: dotnet nuget push "**\${{ env.ProjectName }}.*.nupkg" --api-key ${{secrets.nuget_api_key}} --skip-duplicate --source https://api.nuget.org/v3/index.json
1670

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

.gitignore

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Ignore Visual Studio temporary files, build results, and
22
## files generated by popular Visual Studio add-ons.
33
##
4-
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
4+
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
55

66
# User-specific files
77
*.rsuser
@@ -23,7 +23,6 @@ mono_crash.*
2323
[Rr]eleases/
2424
x64/
2525
x86/
26-
[Ww][Ii][Nn]32/
2726
[Aa][Rr][Mm]/
2827
[Aa][Rr][Mm]64/
2928
bld/
@@ -62,9 +61,6 @@ project.lock.json
6261
project.fragment.lock.json
6362
artifacts/
6463

65-
# ASP.NET Scaffolding
66-
ScaffoldingReadMe.txt
67-
6864
# StyleCop
6965
StyleCopReport.xml
7066

@@ -82,8 +78,6 @@ StyleCopReport.xml
8278
*.pgc
8379
*.pgd
8480
*.rsp
85-
# but not Directory.Build.rsp, as it configures directory-level build defaults
86-
!Directory.Build.rsp
8781
*.sbr
8882
*.tlb
8983
*.tli
@@ -92,7 +86,6 @@ StyleCopReport.xml
9286
*.tmp_proj
9387
*_wpftmp.csproj
9488
*.log
95-
*.tlog
9689
*.vspscc
9790
*.vssscc
9891
.builds
@@ -144,11 +137,6 @@ _TeamCity*
144137
.axoCover/*
145138
!.axoCover/settings.json
146139

147-
# Coverlet is a free, cross platform Code Coverage Tool
148-
coverage*.json
149-
coverage*.xml
150-
coverage*.info
151-
152140
# Visual Studio code coverage results
153141
*.coverage
154142
*.coveragexml
@@ -296,17 +284,6 @@ node_modules/
296284
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
297285
*.vbw
298286

299-
# Visual Studio 6 auto-generated project file (contains which files were open etc.)
300-
*.vbp
301-
302-
# Visual Studio 6 workspace and project file (working project files containing files to include in project)
303-
*.dsw
304-
*.dsp
305-
306-
# Visual Studio 6 technical files
307-
*.ncb
308-
*.aps
309-
310287
# Visual Studio LightSwitch build output
311288
**/*.HTMLClient/GeneratedArtifacts
312289
**/*.DesktopClient/GeneratedArtifacts
@@ -363,9 +340,6 @@ ASALocalRun/
363340
# Local History for Visual Studio
364341
.localhistory/
365342

366-
# Visual Studio History (VSHistory) files
367-
.vshistory/
368-
369343
# BeatPulse healthcheck temp database
370344
healthchecksdb
371345

@@ -374,27 +348,3 @@ MigrationBackup/
374348

375349
# Ionide (cross platform F# VS Code tools) working folder
376350
.ionide/
377-
378-
# Fody - auto-generated XML schema
379-
FodyWeavers.xsd
380-
381-
# VS Code files for those working on multiple tools
382-
.vscode/*
383-
!.vscode/settings.json
384-
!.vscode/tasks.json
385-
!.vscode/launch.json
386-
!.vscode/extensions.json
387-
*.code-workspace
388-
389-
# Local History for Visual Studio Code
390-
.history/
391-
392-
# Windows Installer files from build outputs
393-
*.cab
394-
*.msi
395-
*.msix
396-
*.msm
397-
*.msp
398-
399-
# JetBrains Rider
400-
*.sln.iml

.idea/.idea.AStar.Dev.Api.Client.Sdk.Shared/.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.Api.Client.Sdk.Shared/.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.Api.Client.Sdk.Shared/.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.Api.Client.Sdk.Shared/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.31903.59
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{92CD35A9-E04F-435D-8049-9479A49A4E3A}"
7+
EndProject
8+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{C08B6FBA-54C5-4A0E-BF57-91B13304DC08}"
9+
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Api.Client.Sdk.Shared", "src\AStar.Dev.Api.Client.Sdk.Shared\AStar.Dev.Api.Client.Sdk.Shared.csproj", "{F6CB8CAB-AE3F-48F7-9DA5-77830D77A085}"
11+
EndProject
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Api.Client.Sdk.Shared.Tests.Unit", "test\AStar.Dev.Api.Client.Sdk.Shared.Tests.Unit\AStar.Dev.Api.Client.Sdk.Shared.Tests.Unit.csproj", "{DAB06894-014F-44E9-B5D3-9BB08DC9F0EF}"
13+
EndProject
14+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{67DA8F1D-3A94-402B-A849-6FFD9F32CA60}"
15+
ProjectSection(SolutionItems) = preProject
16+
.github\dependabot.yml = .github\dependabot.yml
17+
EndProjectSection
18+
EndProject
19+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{0BE9B040-6CE1-43DA-8B35-F35C4E90098E}"
20+
ProjectSection(SolutionItems) = preProject
21+
.github\workflows\dotnet.yml = .github\workflows\dotnet.yml
22+
EndProjectSection
23+
EndProject
24+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8B31BBC4-D482-405D-8477-31E3F774D7C8}"
25+
ProjectSection(SolutionItems) = preProject
26+
AStar.png = AStar.png
27+
EndProjectSection
28+
EndProject
29+
Global
30+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
31+
Debug|Any CPU = Debug|Any CPU
32+
Release|Any CPU = Release|Any CPU
33+
EndGlobalSection
34+
GlobalSection(SolutionProperties) = preSolution
35+
HideSolutionNode = FALSE
36+
EndGlobalSection
37+
GlobalSection(NestedProjects) = preSolution
38+
{F6CB8CAB-AE3F-48F7-9DA5-77830D77A085} = {92CD35A9-E04F-435D-8049-9479A49A4E3A}
39+
{DAB06894-014F-44E9-B5D3-9BB08DC9F0EF} = {C08B6FBA-54C5-4A0E-BF57-91B13304DC08}
40+
{0BE9B040-6CE1-43DA-8B35-F35C4E90098E} = {67DA8F1D-3A94-402B-A849-6FFD9F32CA60}
41+
EndGlobalSection
42+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
43+
{F6CB8CAB-AE3F-48F7-9DA5-77830D77A085}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
44+
{F6CB8CAB-AE3F-48F7-9DA5-77830D77A085}.Debug|Any CPU.Build.0 = Debug|Any CPU
45+
{F6CB8CAB-AE3F-48F7-9DA5-77830D77A085}.Release|Any CPU.ActiveCfg = Release|Any CPU
46+
{F6CB8CAB-AE3F-48F7-9DA5-77830D77A085}.Release|Any CPU.Build.0 = Release|Any CPU
47+
{DAB06894-014F-44E9-B5D3-9BB08DC9F0EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
48+
{DAB06894-014F-44E9-B5D3-9BB08DC9F0EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
49+
{DAB06894-014F-44E9-B5D3-9BB08DC9F0EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
50+
{DAB06894-014F-44E9-B5D3-9BB08DC9F0EF}.Release|Any CPU.Build.0 = Release|Any CPU
51+
EndGlobalSection
52+
EndGlobal

AStar.Dev.Example.sln.sln

Lines changed: 0 additions & 57 deletions
This file was deleted.

AStar.png

12.2 KB
Loading

0 commit comments

Comments
 (0)