ci: add tests to check nil or incomplete HTTP client in RequestHTTPCl… #6
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: code checks | |
| on: | |
| push: | |
| paths: | |
| - "cmd/**" | |
| - "internal/**" | |
| - "pkg/**" | |
| - "*.go" | |
| - "go.*" | |
| jobs: | |
| code_check_job: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| go-version: ['1.24', '1.25'] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: Install dependencies | |
| run: go get . | |
| - name: Build | |
| run: go build -v ./... | |
| - name: Test with the Go CLI | |
| run: go test -v ./... | |
| - name: Check for vulnerabilities | |
| uses: golang/govulncheck-action@v1 | |
| with: | |
| go-version-input: ${{ matrix.go-version }} | |
| go-package: ./... | |
| work-dir: . |