mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-05-19 18:58:03 +02:00
4c3dd9704f
- Add go.mod version check in lint workflow (fails if go directive != 1.20) - Add golang.org/x/sys to dependabot ignore list (newer versions require Go 1.21+) - Fix golang.org/x/text ignore comment - Migrate issue templates from markdown to YAML forms: - Update PR template (dev → main, add go.mod checklist item) - Update .gitignore for YAML issue templates
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: Lint
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint (${{ matrix.os }})
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: go.mod
|
|
|
|
- name: Check Go version constraint
|
|
if: matrix.os == 'ubuntu-latest'
|
|
run: |
|
|
GO_VERSION=$(grep '^go ' go.mod | awk '{print $2}')
|
|
if [ "$GO_VERSION" != "1.20" ]; then
|
|
echo "::error::go.mod directive must remain 'go 1.20' (Windows 7 support requirement)"
|
|
echo "::error::Current value: go $GO_VERSION"
|
|
exit 1
|
|
fi
|
|
|
|
- name: Check spelling
|
|
if: matrix.os == 'ubuntu-latest'
|
|
uses: crate-ci/typos@master
|
|
with:
|
|
config: ./.typos.toml
|
|
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v8
|
|
with:
|
|
version: v2.10
|