mirror of
https://github.com/go-task/task.git
synced 2026-06-11 09:51:50 +00:00
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: Lint
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
tags:
|
|
- v*
|
|
branches:
|
|
- main
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
strategy:
|
|
matrix:
|
|
go-version: [1.25.10, 1.26.x]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
|
with:
|
|
go-version: ${{matrix.go-version}}
|
|
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1
|
|
with:
|
|
version: v2.12.2
|
|
|
|
lint-jsonschema:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
with:
|
|
python-version: 3.14
|
|
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
- 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
|