Skip to content

Commit

Permalink
ci: add yaml-schema-check
Browse files Browse the repository at this point in the history
- add github schema
- remove redundant trigger in format-check.yaml workflow
  • Loading branch information
timtorChen committed Dec 20, 2024
1 parent 273b86d commit 9b688d0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/flux-local.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: flux-local

on:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/format-check.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: format-check

on:
pull_request:
push:
branches:
- "**"

jobs:
lint:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: renovate
"on":
workflow_dispatch:
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/yaml-schema-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: yaml-schema-check

on:
pull_request:

jobs:
check:
name: Yaml schema check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- run: npx --yes [email protected] ./

0 comments on commit 9b688d0

Please sign in to comment.