Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/check-markdown-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
paths:
- ".github/workflows/check-markdown-task.ya?ml"
- ".markdown-link-check.json"
- "**/.npmrc"
- ".npmrc"
- "package.json"
- "package-lock.json"
- "Taskfile.ya?ml"
Expand All @@ -23,7 +23,7 @@ on:
paths:
- ".github/workflows/check-markdown-task.ya?ml"
- ".markdown-link-check.json"
- "**/.npmrc"
- ".npmrc"
- "package.json"
- "package-lock.json"
- "Taskfile.ya?ml"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-prettier-formatting-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
push:
paths:
- ".github/workflows/check-prettier-formatting-task.ya?ml"
- ".npmrc"
- "Taskfile.ya?ml"
- "**/.npmrc"
- "**/.prettierignore"
- "**/.prettierrc*"
# CSS
Expand Down Expand Up @@ -111,8 +111,8 @@ on:
pull_request:
paths:
- ".github/workflows/check-prettier-formatting-task.ya?ml"
- ".npmrc"
- "Taskfile.ya?ml"
- "**/.npmrc"
- "**/.prettierignore"
- "**/.prettierrc*"
# CSS
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-workflows-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ on:
push:
paths:
- ".github/workflows/*.ya?ml"
- "**/.npmrc"
- ".npmrc"
- "package.json"
- "package-lock.json"
- "Taskfile.ya?ml"
pull_request:
paths:
- ".github/workflows/*.ya?ml"
- "**/.npmrc"
- ".npmrc"
- "package.json"
- "package-lock.json"
- "Taskfile.ya?ml"
Expand Down
17 changes: 15 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ includes:
dist: ./DistTasks.yml

vars:
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/npm-task/Taskfile.yml
# Path of the project's primary npm-managed project:
DEFAULT_NPM_PROJECT_PATH: .
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/release-go-task/Taskfile.yml
PROJECT_NAME: "arduino-lint"
DIST_DIR: "dist"
Expand Down Expand Up @@ -155,6 +158,8 @@ tasks:
WORKFLOWS_DATA_PATH: "./.github/workflows/*.{yml,yaml}"
deps:
- task: npm:install-deps
vars:
PROJECT_PATH: .
cmds:
- |
wget \
Expand Down Expand Up @@ -248,6 +253,8 @@ tasks:
desc: Format all supported files with Prettier
deps:
- task: npm:install-deps
vars:
PROJECT_PATH: .
cmds:
- |
npx \
Expand Down Expand Up @@ -412,6 +419,8 @@ tasks:
deps:
- task: docs:generate
- task: npm:install-deps
vars:
PROJECT_PATH: .
cmds:
- |
npx \
Expand All @@ -423,6 +432,8 @@ tasks:
desc: Automatically correct linting violations in Markdown files where possible
deps:
- task: npm:install-deps
vars:
PROJECT_PATH: .
cmds:
- |
npx \
Expand All @@ -435,6 +446,8 @@ tasks:
desc: Check for problems in Markdown files
deps:
- task: npm:install-deps
vars:
PROJECT_PATH: .
cmds:
- |
npx \
Expand All @@ -447,7 +460,7 @@ tasks:
npm:install-deps:
desc: Install dependencies managed by npm
dir: |
"{{default "./" .PROJECT_PATH}}"
"{{default .DEFAULT_NPM_PROJECT_PATH .PROJECT_PATH}}"
cmds:
- npm install

Expand Down Expand Up @@ -498,7 +511,7 @@ tasks:
STYLELINTRC_SCHEMA_PATH:
sh: task utility:mktemp-file TEMPLATE="stylelintrc-schema-XXXXXXXXXX.json"
INSTANCE_PATH: >-
{{default "." .PROJECT_PATH}}/package.json
{{default .DEFAULT_NPM_PROJECT_PATH .PROJECT_PATH}}/package.json
PROJECT_FOLDER:
sh: pwd
WORKING_FOLDER:
Expand Down
Loading