feat:修订文档name命名,确保与文件类型匹配 (#50) #128
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: Build | |
on: | |
push: | |
branches: | |
- main | |
- v0.2.x | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: ['1.20', '1.21', '1.22'] | |
name: Go ${{ matrix.go }} sample | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Depend | |
run: sudo make dependencies | |
- name: Test | |
run: | | |
sudo make lint | |
sudo make cover | |
- name: CodeCov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
file: ./coverage.txt | |
- name: Pre-Build | |
run: sudo git fetch --prune --unshallow | |
- name: Build | |
run: sudo make release |