feat(routes): add #10
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: Lint and Test | |
| on: | |
| pull_request: | |
| push: | |
| branches: [master] | |
| jobs: | |
| lint_and_test: | |
| name: Lint and Test - 1.23.x | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: 1.23.x | |
| cache: false | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Lint package | |
| uses: golangci/golangci-lint-action@v8 | |
| with: | |
| version: latest | |
| - name: Test package | |
| run: | | |
| go test -v ./test -coverprofile=coverage.txt -covermode count | |
| go tool cover -func coverage.txt | |
| - name: Update coverage report | |
| uses: ncruces/go-coverage-report@v0.3.0 | |
| with: | |
| report: 'true' | |
| amend: 'true' | |
| reuse-go: 'true' | |
| if: | |
| github.event_name == 'push' | |
| continue-on-error: true |