fix nil panic when hb is nil, for unit test purpose #9
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: golang-ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
golangci: | |
name: GolangCI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1 | |
- name: golangci-lint | |
run: | | |
docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.57.2 golangci-lint run -v --timeout=3600s | |
- name: Run Gosec Security Scanner | |
uses: securego/gosec@55d79496019a560e16e73e1948dee20a1fad631a #v2.18.2 |