refactor(admin/app/context): 将与 api 相关的功能添加至 api 属性之下 #85
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
go: ['1.22.x', '1.23.x'] | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v5 | |
with: | |
stable: '!contains(${{ matrix.go }}, "beta") && !contains(${{ matrix.go }}, "rc")' | |
go-version: ${{ matrix.go }} | |
id: go | |
- name: Vet | |
run: go vet -v ./... | |
- name: Test | |
env: | |
LANG: en | |
run: go test -v -coverprofile='coverage.txt' -p=1 -parallel=1 -covermode=atomic ./... | |
- name: Upload Coverage report | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
file: ./coverage.txt |