chore: add Go version lint check, modernize issue templates (#557)

- 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
This commit is contained in:
Roger
2026-04-06 00:33:25 +08:00
committed by GitHub
parent d8032ac824
commit 4c3dd9704f
10 changed files with 207 additions and 73 deletions
+10
View File
@@ -23,6 +23,16 @@ jobs:
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