mirror of
https://github.com/go-task/task.git
synced 2025-10-08 23:02:02 +02:00
44 lines
868 B
YAML
44 lines
868 B
YAML
name: Lint
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
tags:
|
|
- v*
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
strategy:
|
|
matrix:
|
|
go-version: [1.24.x, 1.25.x]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: ${{matrix.go-version}}
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v8
|
|
with:
|
|
version: v2.1.0
|
|
|
|
lint-jsonschema:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: 3.13
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: install check-jsonschema
|
|
run: python -m pip install 'check-jsonschema==0.27.3'
|
|
|
|
- name: check-jsonschema (metaschema)
|
|
run: check-jsonschema --check-metaschema website/src/public/schema.json
|