mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-05-06 05:38:50 +00:00
chore: optimize and fix github actions (cleanup, CI fixes, security scanner tuning)
This commit is contained in:
@@ -22,6 +22,7 @@ jobs:
|
||||
runs-on: ${{ matrix.os }}-latest
|
||||
env:
|
||||
GO111MODULE: on
|
||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -30,8 +31,10 @@ jobs:
|
||||
go-version: "1.26.x"
|
||||
|
||||
- name: generate swagger docs
|
||||
shell: bash
|
||||
run: |
|
||||
go install github.com/swaggo/swag/cmd/swag@latest
|
||||
mkdir -p ./cmd/dashboard/user-dist ./cmd/dashboard/admin-dist
|
||||
touch ./cmd/dashboard/user-dist/a
|
||||
touch ./cmd/dashboard/admin-dist/a
|
||||
swag init --pd -d cmd/dashboard -g main.go -o cmd/dashboard/docs
|
||||
@@ -49,4 +52,4 @@ jobs:
|
||||
env:
|
||||
GOTOOLCHAIN: auto
|
||||
with:
|
||||
args: --exclude=G104,G115,G117,G203,G402,G703,G704 ./...
|
||||
args: --exclude=G103,G104,G107,G115,G117,G203,G402,G703,G704 ./...
|
||||
|
||||
Reference in New Issue
Block a user