Use separate http client instead of default one #6
Workflow file for this run
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: | |
pull_request: | |
branches: [ master, main ] | |
push: | |
branches: [ master, main ] | |
jobs: | |
test: | |
name: test | |
strategy: | |
matrix: | |
go-version: | |
- 1.22.x | |
- 1.23.x | |
os: [ ubuntu-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # for golangci-lint's -new-from-rev | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
cache: true # caching and restoring go modules and build outputs | |
- run: go env | |
- name: Install deps | |
run: go mod download | |
# TODO(vtopc): | |
# - name: nilaway | |
# run: make nilaway | |
# TODO(vtopc): | |
# - name: lint | |
# run: make lint | |
- name: Test | |
run: go test ./... -race -count=1 |