mirror of
https://github.com/go-task/task.git
synced 2025-01-24 05:17:21 +02:00
b377ddebff
This is written to use `check-jsonschema` on the (current) latest version (0.27.3). It checks that the JSON Schema published in the docs is valid under its declared metaschema (`$schema`).
40 lines
766 B
YAML
40 lines
766 B
YAML
name: Lint
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
tags:
|
|
- v*
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/setup-go@v3
|
|
with:
|
|
go-version: 1.21.x
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v3
|
|
with:
|
|
version: v1.55.2
|
|
|
|
lint-jsonschema:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: 3.12
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: install check-jsonschema
|
|
run: python -m pip install 'check-jsonschema==0.27.3'
|
|
|
|
- name: check-jsonschema (metaschema)
|
|
run: check-jsonschema --check-metaschema docs/static/schema.json
|