mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-05-19 18:58:03 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user