Skip to content

Commit

Permalink
Merge pull request #792 from per1234/check-workflows-npm
Browse files Browse the repository at this point in the history
Use npm to manage "Check Workflows" tool dependencies
  • Loading branch information
per1234 authored Oct 16, 2024
2 parents 37dbf5b + 14983d7 commit c190bd2
Show file tree
Hide file tree
Showing 4 changed files with 290 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/check-workflows-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ on:
push:
paths:
- ".github/workflows/*.ya?ml"
- "**/.npmrc"
- "package.json"
- "package-lock.json"
- "Taskfile.ya?ml"
pull_request:
paths:
- ".github/workflows/*.ya?ml"
- "**/.npmrc"
- "package.json"
- "package-lock.json"
- "Taskfile.ya?ml"
schedule:
# Run every Tuesday at 8 AM UTC to catch breakage resulting from changes to the JSON schema.
Expand All @@ -27,6 +33,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: package.json

- name: Install Task
uses: arduino/setup-task@v2
with:
Expand Down
2 changes: 2 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ tasks:
WORKFLOW_SCHEMA_PATH:
sh: mktemp -t workflow-schema-XXXXXXXXXX.json
WORKFLOWS_DATA_PATH: "./.github/workflows/*.{yml,yaml}"
deps:
- task: npm:install-deps
cmds:
- |
wget \
Expand Down
275 changes: 275 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"devDependencies": {
"ajv-cli": "5.0.0",
"ajv-formats": "3.0.1",
"markdown-link-check": "3.12.2",
"markdownlint-cli": "0.42.0",
"prettier": "3.3.3"
Expand Down

0 comments on commit c190bd2

Please sign in to comment.