forked from VocaDB/ResXFileCodeGenerator
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: rebrand from VocaDb, since they put theirs in deprecated mode
- Loading branch information
Showing
78 changed files
with
9,961 additions
and
3,238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:best-practices", | ||
"schedule:weekends", | ||
":semanticCommits" | ||
], | ||
"prConcurrentLimit": 0, | ||
"prHourlyLimit": 2, | ||
"suppressNotifications": [ | ||
"prIgnoreNotification" | ||
], | ||
"postUpdateOptions": [ | ||
"helmUpdateSubChartArchives" | ||
], | ||
"separateMajorMinor": true, | ||
"kubernetes": { | ||
"fileMatch": "\\.yaml$" | ||
}, | ||
"customManagers": [ | ||
{ | ||
"customType": "regex", | ||
"fileMatch": [ | ||
"(^|/|\\.)[dD]ockerfile$" | ||
], | ||
"matchStrings": [ | ||
"datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s+ENV .*?_VERSION[=\\s](?<currentValue>.*)\\s" | ||
], | ||
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}" | ||
}, | ||
{ | ||
"customType": "regex", | ||
"fileMatch": [ | ||
"(^|/|\\.)values\\.yaml$" | ||
], | ||
"matchStrings": [ | ||
"datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s+tag:\\s*(?<currentValue>.*)\\s" | ||
], | ||
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}" | ||
}, | ||
{ | ||
"customType": "regex", | ||
"fileMatch": [ | ||
"(^|/|\\.)[dD]ockerfile$" | ||
], | ||
"matchStrings": [ | ||
"ARG IMAGE=(?<depName>.*?):(?<currentValue>.*?)(@(?<currentDigest>sha256:[a-f0-9]+))?\\s" | ||
], | ||
"datasourceTemplate": "docker" | ||
} | ||
], | ||
"packageRules": [ | ||
{ | ||
"matchPackageNames": [ | ||
"catglobe" | ||
], | ||
"enabled": false | ||
}, | ||
{ | ||
"matchPackageNames": [ | ||
"windows" | ||
], | ||
"matchCurrentVersion": "2019", | ||
"enabled": false | ||
}, | ||
{ | ||
"matchManagers": [ | ||
"helmv3" | ||
], | ||
"matchUpdateTypes": [ | ||
"pin", | ||
"digest", | ||
"pinDigest" | ||
], | ||
"enabled": false | ||
}, | ||
{ | ||
"matchFileNames": [ | ||
"docker-images/**", | ||
".github/workflows/**" | ||
], | ||
"automerge": true, | ||
"automergeType": "branch" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Release | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # to be able to publish a GitHub release | ||
issues: write # to be able to comment on released issues | ||
packages: write # to be able to make package releases | ||
pull-requests: write # to be able to comment on released pull requests | ||
id-token: write # to enable use of OIDC for npm provenance | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3 | ||
with: | ||
cache: npm | ||
node-version: 'lts/*' | ||
- name: Install dependencies | ||
run: npm clean-install | ||
- name: Test | ||
run: dotnet test | ||
- name: Release | ||
working-directory: Catglobe.ResXFileCodeGenerator | ||
run: npx semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"defaultBranch": "main", | ||
"branches": [ | ||
"+([0-9])?(.{+([0-9]),x}).x", | ||
"main", | ||
"next", | ||
"next-major", | ||
{ | ||
"name": "beta", | ||
"prerelease": true | ||
}, | ||
{ | ||
"name": "alpha", | ||
"prerelease": true | ||
} | ||
], | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
[ | ||
"@droidsolutions-oss/semantic-release-update-file", | ||
{ | ||
"files": [ | ||
{ | ||
"path": [ "Catglobe.ResXFileCodeGenerator/Catglobe.ResXFileCodeGenerator.csproj" ], | ||
"type": "xml", | ||
"replacements": [ | ||
{ "key": "Version", "value": "${nextRelease.version}" }, | ||
{ "key": "RepositoryCommit", "value": "${nextRelease.gitHead}" } | ||
] | ||
} | ||
] | ||
} | ||
], | ||
[ | ||
"@droidsolutions-oss/semantic-release-nuget", | ||
{ | ||
"projectPath": "Catglobe.ResXFileCodeGenerator/Catglobe.ResXFileCodeGenerator.csproj", | ||
"nugetServer": "https://api.nuget.org/v3/index.json" | ||
} | ||
], | ||
"@semantic-release/github" | ||
] | ||
} |
19 changes: 19 additions & 0 deletions
19
Catglobe.ResXFileCodeGenerator.Tests/AdditionalTextStub.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using Microsoft.CodeAnalysis; | ||
using Microsoft.CodeAnalysis.Text; | ||
|
||
namespace Catglobe.ResXFileCodeGenerator.Tests; | ||
|
||
internal class AdditionalTextStub : AdditionalText | ||
{ | ||
private readonly SourceText? _text; | ||
|
||
public override string Path { get; } | ||
|
||
public AdditionalTextStub(string path, string? text = null) | ||
{ | ||
_text = text is null ? null : SourceText.From(text); | ||
Path = path; | ||
} | ||
|
||
public override SourceText? GetText(CancellationToken cancellationToken = new()) => _text; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.