refactor: add ctx
param to scraper interfaces and methods
#13
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: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
strategy: | |
matrix: | |
go-version: | |
- 1.21.x | |
os: | |
- ubuntu | |
name: build (${{ matrix.os }}/go-${{ matrix.go-version }}) | |
runs-on: ${{ matrix.os }}-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- run: make build | |
qa: | |
strategy: | |
matrix: | |
go-version: | |
- 1.21.x | |
os: | |
- ubuntu | |
runs-on: ${{ matrix.os }}-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- run: make checkfmt | |
- run: make vet | |
- run: go install honnef.co/go/tools/cmd/[email protected] | |
- run: make staticcheck | |
- run: go install mvdan.cc/unparam@latest | |
- run: make unparam |