Skip to content

Commit 16f87aa

Browse files
authored
Merge pull request #1 from astar-development/features/add-initial-code
Copy over initial code from local
2 parents 67d4fc4 + 1943417 commit 16f87aa

38 files changed

+1240
-0
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/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "nuget"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/dotnet.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: .NET
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ "main" ]
7+
pull_request:
8+
branches: [ "main" ]
9+
10+
jobs:
11+
build:
12+
name: Build and analyze
13+
runs-on: windows-latest
14+
env:
15+
ProjectName: 'AStar.Dev.AspNet.Extensions'
16+
RepositoryName: 'astar-dev-aspnet-extensions'
17+
steps:
18+
- name: Set up JDK
19+
uses: actions/[email protected]
20+
with:
21+
java-version: 17
22+
distribution: 'zulu'
23+
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 /d:sonar.scanner.scanAll=false
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
70+

.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.AspNet.Extensions/.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.AspNet.Extensions/.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.AspNet.Extensions/.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.AspNet.Extensions/.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.

.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/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.

0 commit comments

Comments
 (0)