Skip to content

Commit 67e57e4

Browse files
authored
Merge pull request #1 from astar-development/features/initial-code-migration
Initial code creation
2 parents c082a08 + cc1e24b commit 67e57e4

File tree

62 files changed

+1813
-224
lines changed

Some content is hidden

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

62 files changed

+1813
-224
lines changed

.dockerignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
**/.dockerignore
2+
**/.env
3+
**/.git
4+
**/.gitignore
5+
**/.project
6+
**/.settings
7+
**/.toolstarget
8+
**/.vs
9+
**/.vscode
10+
**/.idea
11+
**/*.*proj.user
12+
**/*.dbmdl
13+
**/*.jfm
14+
**/azds.yaml
15+
**/bin
16+
**/charts
17+
**/docker-compose*
18+
**/Dockerfile*
19+
**/node_modules
20+
**/npm-debug.log
21+
**/obj
22+
**/secrets.dev.yaml
23+
**/values.dev.yaml
24+
LICENSE
25+
README.md

.github/workflows/dotnet.yml

Lines changed: 63 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,74 @@
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-
4-
name: .NET
1+
name: .NET - Build NuGet and Publish
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.Admin.Api.Client.Sdk'
16+
RepositoryName: 'astar-dev-admin-api-client-sdk'
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: Setup .NET
25+
uses: actions/setup-dotnet@v4
26+
with:
27+
dotnet-version: 9.0.x
1628

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

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

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

AStar.Dev.Admin.Api.Client.Sdk.sln

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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", "{F881F2A5-6B1D-4E4F-A698-C3D5E760E509}"
7+
EndProject
8+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{F205434D-6BE3-414B-A17D-A12F8E78C58F}"
9+
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Admin.Api.Client.Sdk", "src\AStar.Dev.Admin.Api.Client.Sdk\AStar.Dev.Admin.Api.Client.Sdk.csproj", "{1A33B6F9-9126-43D5-962B-6BA2DBE5B052}"
11+
EndProject
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Admin.Api.Client.Sdk.Tests.Unit", "test\AStar.Dev.Admin.Api.Client.Sdk.Tests.Unit\AStar.Dev.Admin.Api.Client.Sdk.Tests.Unit.csproj", "{20915888-5AEA-4918-8DE4-FBE77EFCC758}"
13+
EndProject
14+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{94A53025-23C4-4B9D-B015-B7CDBD1E2275}"
15+
ProjectSection(SolutionItems) = preProject
16+
.github\dependabot.yml = .github\dependabot.yml
17+
EndProjectSection
18+
EndProject
19+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{790D531F-FFB9-4C8C-A861-C469CDF5DB9D}"
20+
ProjectSection(SolutionItems) = preProject
21+
.github\workflows\dotnet.yml = .github\workflows\dotnet.yml
22+
EndProjectSection
23+
EndProject
24+
Global
25+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
26+
Debug|Any CPU = Debug|Any CPU
27+
Release|Any CPU = Release|Any CPU
28+
EndGlobalSection
29+
GlobalSection(SolutionProperties) = preSolution
30+
HideSolutionNode = FALSE
31+
EndGlobalSection
32+
GlobalSection(NestedProjects) = preSolution
33+
{1A33B6F9-9126-43D5-962B-6BA2DBE5B052} = {F881F2A5-6B1D-4E4F-A698-C3D5E760E509}
34+
{20915888-5AEA-4918-8DE4-FBE77EFCC758} = {F205434D-6BE3-414B-A17D-A12F8E78C58F}
35+
{790D531F-FFB9-4C8C-A861-C469CDF5DB9D} = {94A53025-23C4-4B9D-B015-B7CDBD1E2275}
36+
EndGlobalSection
37+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
38+
{1A33B6F9-9126-43D5-962B-6BA2DBE5B052}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
39+
{1A33B6F9-9126-43D5-962B-6BA2DBE5B052}.Debug|Any CPU.Build.0 = Debug|Any CPU
40+
{1A33B6F9-9126-43D5-962B-6BA2DBE5B052}.Release|Any CPU.ActiveCfg = Release|Any CPU
41+
{1A33B6F9-9126-43D5-962B-6BA2DBE5B052}.Release|Any CPU.Build.0 = Release|Any CPU
42+
{20915888-5AEA-4918-8DE4-FBE77EFCC758}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
43+
{20915888-5AEA-4918-8DE4-FBE77EFCC758}.Debug|Any CPU.Build.0 = Debug|Any CPU
44+
{20915888-5AEA-4918-8DE4-FBE77EFCC758}.Release|Any CPU.ActiveCfg = Release|Any CPU
45+
{20915888-5AEA-4918-8DE4-FBE77EFCC758}.Release|Any CPU.Build.0 = Release|Any CPU
46+
EndGlobalSection
47+
EndGlobal

AStar.Dev.Example.sln.sln

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

AStar.ico

11.3 KB
Binary file not shown.

AStar.png

12.2 KB
Loading

0 commit comments

Comments
 (0)