Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,26 @@ insert_final_newline = true
trim_trailing_whitespace = true

# C#関連ファイル
[*.{cs,tt,xaml,razor,cshtml,sln}]
[*.{cs,tt,xaml,axaml,razor,cshtml,resx,sln}]
charset = utf-8-bom
end_of_line = crlf

# リソースファイル
[*.resx]
indent_size = 2

# Visual Studio ソリューションファイル
[*.sln]
indent_style = tab

# C#プロジェクトファイル
# EditorConfigなしだとUTF-8(WPFプロジェクトはBOM付き)のCRLFになる。
[*.csproj]
# Visual Studio XML ソリューションファイル
[*.slnx]
end_of_line = crlf
indent_size = 2

# Visual Studioプロジェクトファイル
# .csprojは、EditorConfigなしだとUTF-8(WPFプロジェクトはBOM付き)のCRLFになる。
[*.{csproj,esproj}]
end_of_line = crlf
indent_size = 2

Expand Down Expand Up @@ -52,8 +61,6 @@ trim_trailing_whitespace = false
[{*Generated,**/Generated/**}.cs]
generated_code = true

# Program.cs
# 理由: トップレベルステートメントで誤検知するため。
# https://github.com/dotnet/roslyn-analyzers/issues/6141
[Program.cs]
dotnet_diagnostic.CA1852.severity = none
# XamlStyler
[Settings.XamlStyler]
indent_size = 2
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
*.cs text eol=crlf
*.tt text eol=crlf
*.xaml text eol=crlf
*.axaml text eol=crlf
*.razor text eol=crlf
*.cshtml text eol=crlf
*.resx text eol=crlf
*.csproj text eol=crlf
*.esproj text eol=crlf
*.sln text eol=crlf
*.slnx text eol=crlf
PSScriptAnalyzerSettings.psd1 linguist-vendored
Source/Common/* linguist-vendored
*/wwwroot/* linguist-vendored
9 changes: 5 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@ version: 2
updates:
- package-ecosystem: nuget
directory: /
open-pull-requests-limit: 10
open-pull-requests-limit: 99
schedule:
interval: daily
cooldown:
default-days: 7
labels:
- dependencies
ignore:
- dependency-name: Microsoft.SourceLink.GitHub
- dependency-name: StyleCop.Analyzers

- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
cooldown:
default-days: 7
labels:
- dependencies
2 changes: 1 addition & 1 deletion .github/dotfiles.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"hash": "9ba280023bd46042eaa00534ce57776471a35333"
"hash": "e59a415be30e93482ade7b2b1e3cc38f124e800e"
}
4 changes: 4 additions & 0 deletions .github/workflows/build-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ on:
- '**/*.cs'
- '**/*.tt'
- '**/*.xaml'
- '**/*.axaml'
- '**/*.razor'
- '**/*.cshtml'
- '**/*.csproj'
- '**/*.resx'
- '**/*.sln'
- '**/*.slnx'
- '**/*.props'
- '**/*.targets'
- '**/.editorconfig'
Expand All @@ -21,3 +24,4 @@ jobs:
main:
name: Main
uses: finphie/Actions/.github/workflows/build-dotnet.yml@main
permissions: {}
1 change: 1 addition & 0 deletions .github/workflows/build-markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ jobs:
main:
name: Main
uses: finphie/Actions/.github/workflows/build-markdown.yml@main
permissions: {}
1 change: 1 addition & 0 deletions .github/workflows/build-powershell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ jobs:
main:
name: Main
uses: finphie/Actions/.github/workflows/build-powershell.yml@main
permissions: {}
1 change: 1 addition & 0 deletions .github/workflows/build-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ jobs:
main:
name: Main
uses: finphie/Actions/.github/workflows/build-python.yml@main
permissions: {}
1 change: 1 addition & 0 deletions .github/workflows/build-yaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ jobs:
main:
name: Main
uses: finphie/Actions/.github/workflows/build-yaml.yml@main
permissions: {}
10 changes: 8 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
check:
name: Check
uses: finphie/Actions/.github/workflows/get-version.yml@main
permissions: {}

release:
name: Release
Expand All @@ -24,6 +25,8 @@ jobs:
uses: finphie/Actions/.github/workflows/release.yml@main
permissions:
contents: write
id-token: write
attestations: write
with:
version: ${{ needs.check.outputs.version }}
tag: ${{ needs.check.outputs.tag }}
Expand All @@ -33,13 +36,14 @@ jobs:
needs: check
if: needs.check.outputs.dotnet == 'true' && needs.check.outputs.version != ''
uses: finphie/Actions/.github/workflows/deploy-dotnet.yml@main
permissions: {}
with:
version: ${{ needs.check.outputs.version }}
release: ${{ needs.check.outputs.release == 'true' }}
release: ${{ needs.check.outputs.release == 'true' && !startsWith(github.repository, 'finphie/FToolkit') }}
suffix: ${{ needs.check.outputs.tag }}
secrets:
AZURE_ARTIFACT_PAT: ${{ secrets.AZURE_ARTIFACT_PAT }}
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
AZURE_ARTIFACT_PAT: ${{ secrets.AZURE_ARTIFACT_PAT }}

docker:
name: Deploy(Docker)
Expand All @@ -48,6 +52,8 @@ jobs:
uses: finphie/Actions/.github/workflows/deploy-docker.yml@main
permissions:
packages: write
id-token: write
attestations: write
with:
version: ${{ needs.check.outputs.version }}
version-major: ${{ needs.check.outputs.version-major }}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
bin/
obj/
*.user
artifacts/
TestResults/

# MSBuild log
*.binlog
Expand All @@ -21,3 +23,6 @@ Assembly-CSharp*.csproj

# Package File
*.zip

# JavaScript
node_modules/
Loading
Loading