Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for all templates (includes renaming and ci/schemas) #965

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
  •  
  •  
  •  
33 changes: 33 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Lint

on: # yamllint disable-line rule:truthy
workflow_dispatch:
pull_request:
# push:

permissions: read-all

jobs:
build:
name: Lint
runs-on: ubuntu-latest

permissions:
contents: read
packages: read
# To report GitHub Actions status checks
statuses: write

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# super-linter needs the full git history to get the
# list of files that changed across commits
fetch-depth: 0

- name: Super-linter
uses: super-linter/[email protected] # x-release-please-version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # To report GitHub Actions status checks
62 changes: 62 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
name: Validate JSON Schemas

on: # yamllint disable-line rule:truthy
workflow_dispatch:
pull_request:
push:
branches: [ "main" ]

permissions: read-all

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: "Validate manifest.json"
uses: cardinalby/schema-validator-action@v3
with:
file: 'manifest.json'
schema: schemas/manifest.schema.json
fixSchemas: true

- name: "Validate *.config.json"
uses: cardinalby/schema-validator-action@v3
with:
file: '*.config.json'
schema: schemas/config.schema.json
fixSchemas: true

- name: "Validate *.metaconfig.json"
uses: cardinalby/schema-validator-action@v3
with:
file: '*.metaconfig.json'
schema: schemas/metaconfig.schema.json
fixSchemas: true

- name: "Validate *.updates.json"
uses: cardinalby/schema-validator-action@v3
with:
file: '*.updates.json'
schema: schemas/updates.schema.json
fixSchemas: true

- name: "Validate *.ports.json"
uses: cardinalby/schema-validator-action@v3
with:
file: '*.ports.json'
schema: schemas/ports.schema.json
fixSchemas: true

- name: "Validate *.generator.json"
uses: cardinalby/schema-validator-action@v3
with:
file: '*.generator.json'
schema: schemas/generator.schema.json
mode: spec
fixSchemas: true



1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/utilities/edit.py
40 changes: 40 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"json.schemas": [
{
"fileMatch": [
"*.ports.json"
],
"url": "https://github.com/CubeCoders/AMPTemplates/raw/dev/schemas/ports.schema.json"
},
{
"fileMatch": [
"*.updates.json"
],
"url": "https://github.com/CubeCoders/AMPTemplates/raw/dev/schemas/updates.schema.json"
},
{
"fileMatch": [
"*metaconfig.json"
],
"url": "https://github.com/CubeCoders/AMPTemplates/raw/dev/schemas/metaconfig.schema.json"
},
{
"fileMatch": [
"*.config.json"
],
"url": "https://github.com/CubeCoders/AMPTemplates/raw/dev/schemas/config.schema.json"
},
{
"fileMatch": [
"*.generator.json"
],
"url": "https://github.com/CubeCoders/AMPTemplates/raw/dev/schemas/generator.schema.json"
},
{
"fileMatch": [
"manifest.json"
],
"url": "https://github.com/CubeCoders/AMPTemplates/raw/dev/schemas/manifest.schema.json"
}
]
}
Loading