添加达梦数据库支持 #215
Workflow file for this run
This file contains hidden or 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', '1.23', '1.24'] | |
| 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 |