# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-workflows-task.md name: Check Workflows # See: https://docs.github.com/actions/reference/workflows-and-actions/events-that-trigger-workflows on: push: paths: - ".github/workflows/*.ya?ml" - ".npmrc" - "go.mod" - "go.sum" - "package.json" - "package-lock.json" - "Taskfile.ya?ml" pull_request: paths: - ".github/workflows/*.ya?ml" - ".npmrc" - "go.mod" - "go.sum" - "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. - cron: "0 8 * * TUE" workflow_dispatch: repository_dispatch: jobs: validate: runs-on: ubuntu-latest permissions: contents: read steps: - name: Checkout repository uses: actions/checkout@v7 - name: Install Go uses: actions/setup-go@v7 with: go-version-file: go.mod - name: Setup Node.js uses: actions/setup-node@v7 with: node-version-file: package.json - name: Validate workflows run: | go tool \ github.com/go-task/task/v3/cmd/task \ --silent \ ci:validate