ISSUE-220: do not use npx for action validator, use binaries #2219
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate example Taskfile.yml | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
Validate-Example-Taskfile: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
- name: Validate Taskfile.yml | |
# Also update src/BinaryInstallPlugin.php if changing version | |
run: | | |
curl -O https://raw.githubusercontent.com/go-task/task/v3.38.0/website/static/schema.json | |
npx ajv-cli validate -s schema.json -d scaffold/Taskfile.yml |