CI(GitHub Actions): add jsonlint, fix yamllint name

Summary:
Add JSONLint (not the jsonlint npm package) for json linting.
Also fix yamllint to correct job name and add `.vscode` stuff.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Just land it.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D336
This commit is contained in:
revi 2024-06-16 17:34:23 +09:00
parent f85a6a2b90
commit 0833c791ac
Signed by: revi
GPG key ID: 1EB4F6CEEA100E94
4 changed files with 43 additions and 2 deletions

25
.github/workflows/jsonlint.yml vendored Normal file
View file

@ -0,0 +1,25 @@
---
name: JSON Lint
on:
push:
paths:
- '**.json'
- '.arc*'
- '**.sublime-settings'
pull_request:
paths:
- '**.json'
merge_group:
workflow_dispatch:
jobs:
jsonlint:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v4
- name: Run JSON Lint
env:
REPORT_ONLY: true
SHOW_ERRORS: true
run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/json-lint/master/pipeline.sh)

View file

@ -14,9 +14,10 @@ on:
workflow_dispatch:
jobs:
lint-everything:
yaml-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 'Checkout'
uses: actions/checkout@v4
- name: yaml-lint
uses: ibiqlik/action-yamllint@v3

9
.vscode/extensions.json vendored Normal file
View file

@ -0,0 +1,9 @@
{
"recommendations": [
"avive.arcanist",
"christian-kohler.npm-intellisense",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"github.vscode-github-actions"
]
}

6
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,6 @@
{
"files.associations": {
"*.sublime-settings": "jsonc",
".gitaliases": "ignore"
}
}