mirror of
https://github.com/weloe/token-go.git
synced 2025-12-24 12:38:01 +08:00
feat: update workflow and add Readme
This commit is contained in:
18
.github/workflows/go.yml
vendored
18
.github/workflows/go.yml
vendored
@@ -17,6 +17,12 @@ jobs:
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
|
||||
- name: Cache Go modules
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ./
|
||||
key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('go.sum') }}
|
||||
|
||||
- name: Run go test
|
||||
run: go test -v ./...
|
||||
|
||||
@@ -33,6 +39,12 @@ jobs:
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
|
||||
- name: Cache Go modules
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ./
|
||||
key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('go.sum') }}
|
||||
|
||||
- name: Run go test bench
|
||||
run: go test -bench=.
|
||||
|
||||
@@ -46,6 +58,12 @@ jobs:
|
||||
with:
|
||||
go-version: '1.20'
|
||||
|
||||
- name: Cache Go modules
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ./
|
||||
key: ${{ runner.os }}-go-1.20-${{ hashFiles('go.sum') }}
|
||||
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Token-Go
|
||||
|
||||
This library focuses on solving login authentication problems, such as: login, multi-account login, shared token, logout, kickout, banned, SSO ...
|
||||
This library focuses on solving login authentication problems, such as: login, multi-account login, shared token, logout, kickout, banned, second auth, SSO ...
|
||||
|
||||
## Installation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user