Skip to content

Commit ecfbaf2

Browse files
committed
Update
1 parent 6b98db3 commit ecfbaf2

File tree

8 files changed

+4322
-338
lines changed

8 files changed

+4322
-338
lines changed

.editorconfig

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

.gitattributes

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
* text=auto eol=lf
2+
*.cs text eol=crlf
3+
*.xaml text eol=crlf
4+
*.resx text eol=crlf
5+
*.csproj text eol=crlf
6+
*.csproj.user text eol=crlf
7+
*.vb text eol=crlf
8+
*.vbproj text eol=crlf
9+
*.vbproj.user text eol=crlf
10+
*.c text eol=crlf
11+
*.cpp text eol=crlf
12+
*.h text eol=crlf
13+
*.hpp text eol=crlf
14+
*.rc text eol=crlf
15+
*.def text eol=crlf
16+
*.vcxproj text eol=crlf
17+
*.vcxproj.filters text eol=crlf
18+
*.vcxproj.user text eol=crlf
19+
*.vcproj text eol=crlf
20+
*.vcproj.filters text eol=crlf
21+
*.vcproj.user text eol=crlf
22+
*.shproj text eol=crlf
23+
*.projitems text eol=crlf
24+
*.props text eol=crlf
25+
*.targets text eol=crlf
26+
*.pubxml text eol=crlf
27+
*.sln text eol=crlf
28+
*.bas text eol=crlf
29+
*.cls text eol=crlf
30+
*.frm text eol=crlf
31+
*.vbp text eol=crlf
32+
*.vbw text eol=crlf
33+
*.bat text eol=crlf
34+
*.cmd text eol=crlf

.github/workflows/SonarCloud.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/cache@v4
2626
with:
2727
path: ${{ github.workspace }}/.nuget/packages
28-
key: ${{ runner.os }}-sonar-nuget-${{ hashFiles('Directory.Packages.props', '.config/dotnet-tools.json') }} #hash of project files
28+
key: ${{ runner.os }}-sonar-nuget-${{ hashFiles('global.json', 'Directory.Packages.props', '.config/dotnet-tools.json') }} #hash of project files
2929
restore-keys: ${{ runner.os }}-sonar-nuget-
3030
- name: Install Tools
3131
run: dotnet tool restore
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Update lock files for Dependabot .NET SDK PR
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
lockfile:
13+
name: Update lock files
14+
runs-on: ubuntu-latest
15+
if: github.actor == 'dependabot[bot]' && startsWith( github.head_ref, 'dependabot_dotnet_sdk_' )
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
ref: ${{ github.head_ref }}
20+
token: ${{ secrets.ACTIONS_PAT }}
21+
- name: Setup .NET
22+
uses: actions/setup-dotnet@v4
23+
- name: Restore NuGet packages
24+
run: dotnet restore --force-evaluate
25+
- name: Commit and push changes
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.ACTIONS_PAT }}
28+
run: |
29+
git config --global user.name "github-actions[bot]"
30+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
31+
set +e
32+
git commit -am "Update lock files"
33+
cmcode=$?
34+
set -e
35+
if [ $cmcode -eq 0 ]; then
36+
git push
37+
elif [ $cmcode -eq 1 ]; then
38+
echo "No changes to commit"
39+
exit 0
40+
else
41+
exit $cmcode
42+
fi;

.github/workflows/dotnet.yml

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -23,52 +23,52 @@ jobs:
2323
OUTPUT_PATH: output
2424
NUGETPROJ: Bluehill.Hangul/Bluehill.Hangul.csproj
2525
steps:
26-
- uses: actions/checkout@v4
27-
with:
28-
fetch-depth: 0
29-
- name: Setup .NET
30-
uses: actions/setup-dotnet@v4
31-
- name: Cache NuGet
32-
uses: actions/cache@v4
33-
with:
34-
path: ${{ github.workspace }}/.nuget/packages
35-
key: ${{ runner.os }}-nuget-${{ hashFiles('Directory.Packages.props') }} #hash of project files
36-
restore-keys: ${{ runner.os }}-nuget-
37-
- name: Bump revision
38-
id: bump
39-
if: github.event_name == 'push'
40-
uses: vers-one/dotnet-project-version-updater@v1.7
41-
with:
42-
file: ${{ env.NUGETPROJ }}
43-
version: bump-revision
44-
tags: csproj.Version, csproj.FileVersion
45-
- name: Describe
46-
id: describe
47-
if: github.event_name == 'push'
48-
shell: pwsh
49-
run: echo "InfoVersion=$($(git describe --tags --long) -replace $(git describe --tags --abbrev=0),"${{ steps.bump.outputs.newVersion }}-from.$(git describe --tags --abbrev=0)")" >> $env:GITHUB_OUTPUT
50-
- name: Set Version
51-
if: github.event_name == 'push'
52-
uses: vers-one/dotnet-project-version-updater@v1.7
53-
with:
54-
file: ${{ env.NUGETPROJ }}
55-
version: ${{ steps.describe.outputs.InfoVersion }}
56-
tags: csproj.Version
57-
- name: Restore dependencies
58-
run: dotnet restore
59-
- name: Build (Debug)
60-
run: dotnet build --no-restore
61-
- name: Test (Debug)
62-
run: dotnet test --no-build --verbosity normal
63-
- name: Build (Release)
64-
run: dotnet build --configuration Release --no-restore
65-
- name: Pack (Release)
66-
run: dotnet pack --configuration Release --no-build --output ${{ env.OUTPUT_PATH }}
67-
- name: Upload artifact
68-
uses: actions/upload-artifact@v4
69-
with:
70-
name: ${{ github.event.repository.name }}.nupkg
71-
path: ${{ env.OUTPUT_PATH }}/*.*nupkg
26+
- uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0
29+
- name: Setup .NET
30+
uses: actions/setup-dotnet@v4
31+
- name: Cache NuGet
32+
uses: actions/cache@v4
33+
with:
34+
path: ${{ github.workspace }}/.nuget/packages
35+
key: ${{ runner.os }}-nuget-${{ hashFiles('global.json', 'Directory.Packages.props') }} #hash of project files
36+
restore-keys: ${{ runner.os }}-nuget-
37+
- name: Bump revision
38+
id: bump
39+
if: github.event_name == 'push'
40+
uses: vers-one/dotnet-project-version-updater@v1.7
41+
with:
42+
file: ${{ env.NUGETPROJ }}
43+
version: bump-revision
44+
tags: csproj.Version, csproj.FileVersion
45+
- name: Describe
46+
id: describe
47+
if: github.event_name == 'push'
48+
shell: pwsh
49+
run: echo "InfoVersion=$($(git describe --tags --long) -replace $(git describe --tags --abbrev=0),"${{ steps.bump.outputs.newVersion }}-from.$(git describe --tags --abbrev=0)")" >> $env:GITHUB_OUTPUT
50+
- name: Set Version
51+
if: github.event_name == 'push'
52+
uses: vers-one/dotnet-project-version-updater@v1.7
53+
with:
54+
file: ${{ env.NUGETPROJ }}
55+
version: ${{ steps.describe.outputs.InfoVersion }}
56+
tags: csproj.Version
57+
- name: Restore dependencies
58+
run: dotnet restore
59+
- name: Build (Debug)
60+
run: dotnet build --no-restore
61+
- name: Test (Debug)
62+
run: dotnet test --no-build --verbosity normal
63+
- name: Build (Release)
64+
run: dotnet build --configuration Release --no-restore
65+
- name: Pack (Release)
66+
run: dotnet pack --configuration Release --no-build --output ${{ env.OUTPUT_PATH }}
67+
- name: Upload artifact
68+
uses: actions/upload-artifact@v4
69+
with:
70+
name: ${{ github.event.repository.name }}.nupkg
71+
path: ${{ env.OUTPUT_PATH }}/*.*nupkg
7272

7373
publish-gpr:
7474
name: Publish to GitHub Packages Registry

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
uses: actions/cache@v4
4040
with:
4141
path: ${{ github.workspace }}/.nuget/packages
42-
key: ${{ runner.os }}-nuget-${{ hashFiles('Directory.Packages.props') }} #hash of project files
43-
restore-keys: ${{ runner.os }}-nuget-
42+
key: ${{ runner.os }}-pages-nuget-${{ hashFiles('global.json', 'Directory.Packages.props') }} #hash of project files
43+
restore-keys: ${{ runner.os }}-pages-nuget-
4444
- name: Prepare Blazor WASM for GitHub Pages
4545
uses: na1307/blazor-github-pages@v3
4646
id: prepare

.sonarlint/Bluehill.Hangul.json

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

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "9.0.102",
3+
"version": "9.0.200",
44
"rollForward": "latestPatch",
55
"allowPrerelease": false
66
}

0 commit comments

Comments
 (0)