Skip to content
Merged
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
18 changes: 18 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "C# (.NET 10)",
"image": "mcr.microsoft.com/dotnet/sdk:10.0",
"updateRemoteUserUID": true,
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/${localWorkspaceFolderBasename},type=bind,Z",
"runArgs": [
"--userns=keep-id"
],
"customizations": {
"vscode": {
"extensions": [
"ms-dotnettools.csharp",
"ms-dotnettools.vscode-dotnet-runtime",
// "ms-dotnettools.csdevkit"
]
}
}
}
389 changes: 389 additions & 0 deletions .editorconfig

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x' # Uses latest stable .NET

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore

- name: Test
run: dotnet test test/test.csproj --configuration Release --no-build --verbosity normal
22 changes: 22 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Format Check

on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]

jobs:
format:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'

- name: Format Check
run: dotnet format --verify-no-changes
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on:
push:
tags:
- 'v*' # Trigger on tags like v4.0.0 or v4.0.0-rc.1

jobs:
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'

- name: Extract version from tag
id: version
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"

- name: Restore dependencies
run: dotnet restore Hjson/Hjson.csproj

- name: Pack Hjson
run: dotnet pack Hjson/Hjson.csproj --configuration Release --no-restore -o ./artifacts /p:Version=${{ steps.version.outputs.VERSION }}

- name: Push to NuGet
run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"[csharp]": {
"editor.defaultFormatter": "ms-dotnettools.csharp",
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.codeActionsOnSave": {
"source.fixAll.csharp": "explicit"
}
}
}
22 changes: 0 additions & 22 deletions Hjson.nuspec

This file was deleted.

22 changes: 0 additions & 22 deletions Hjson.sln

This file was deleted.

5 changes: 5 additions & 0 deletions Hjson.slnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Solution>
<Project Path="Hjson/Hjson.csproj" />
<Project Path="cli/cli.csproj" />
<Project Path="test/test.csproj" Type="8bb2217d-0f2d-49d1-97bc-3654ed321f3b" />
</Solution>
Loading