Skip to content

Commit

Permalink
docs: 新增文档,许可证,格式校验工作流
Browse files Browse the repository at this point in the history
  • Loading branch information
Clov614 committed Jul 16, 2024
1 parent 703cd95 commit d7e3bc2
Show file tree
Hide file tree
Showing 3 changed files with 724 additions and 5 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Go

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'

- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
args: --out-${NO_FUTURE}format line-number --timeout 3m0s -p bugs -p error -p performance -D unused -D gosmopolitan -D exhaustive -D noctx -D gosec

- name: Test
run: go test -v ./...

- name: Build
run: go build -v ./...
Loading

0 comments on commit d7e3bc2

Please sign in to comment.