-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(github): various repo housekeeping (#193)
* chore: remove deprecated `pr.py` * chore: run deno task from project root * chore: use deno as default formatter * chore: catch invalid JSON * fix(L10n): missing comma in events.json (JPN) regression in #187 * ci(github): check JSON * style: deno fmt * build: insert final newline on generated JSON * ci(github): enforce semantic pr for title and commits * ci: lint ts, md, json, schema files
- Loading branch information
Showing
23 changed files
with
142 additions
and
190 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
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,4 @@ | ||
# https://github.com/Ezard/semantic-prs#configuration | ||
|
||
# Validate the PR title and all commit messages | ||
titleAndCommits: true |
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,29 @@ | ||
name: linting | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: denoland/setup-deno@v1 | ||
|
||
- name: fmt | ||
continue-on-error: true | ||
run: deno fmt --check | ||
|
||
- name: lint | ||
continue-on-error: true | ||
run: deno lint | ||
|
||
- name: validate schema | ||
continue-on-error: true | ||
run: deno task schema:validate | ||
|
||
- name: json syntax check | ||
uses: limitusus/json-syntax-check@v1 | ||
with: | ||
pattern: "\\.json$" |
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
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
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
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
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
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 |
---|---|---|
@@ -1,3 +1,24 @@ | ||
{ | ||
"fmt": { "options": { "semiColons": false } } | ||
"tasks": { | ||
"schema": "deno task --cwd localization/ schema", | ||
"schema:vscode": "deno task --cwd localization/ schema:vscode", | ||
"schema:validate": "deno task --cwd localization/ validate", | ||
"schema:fmt": "deno task --cwd localization/ fmt" | ||
}, | ||
"fmt": { | ||
"options": { "semiColons": false }, | ||
"files": { | ||
"exclude": ["src/main/kotlin/", "src/main/resources/img", "build/"] | ||
} | ||
}, | ||
"test": { | ||
"files": { | ||
"exclude": ["src/main/kotlin/", "src/main/resources/img", "build/"] | ||
} | ||
}, | ||
"bench": { | ||
"files": { | ||
"exclude": ["src/main/kotlin/", "src/main/resources/img", "build/"] | ||
} | ||
} | ||
} |
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
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
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.