feat: update workflow and add Readme

This commit is contained in:
weloe
2023-08-24 00:37:00 +08:00
parent 62208f09d8
commit df39e54be6
2 changed files with 19 additions and 1 deletions

View File

@@ -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:

View File

@@ -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