Revert "add a custom interface for the resolver instead of forcing *n… #1
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
on: [push, pull_request] | |
name: Test | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: ['1.19', '1.20'] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Setup env | |
run: | | |
echo "{GOFLAGS}={-mod=vendor}" >> $GITHUB_ENV | |
- name: Vet | |
run: | | |
go vet -v ./... | |
- name: Test | |
run: | | |
go mod verify | |
go test -race -v -timeout 2m -failfast -covermode atomic -coverprofile=.covprofile ./... -tags=nointegration | |
# Run integration tests hermetically to avoid nondeterministic races on environment variables | |
go test -race -v -timeout 2m -failfast ./cmd/... -run TestSmokescreenIntegration | |
go test -race -v -timeout 2m -failfast ./cmd/... -run TestInvalidUpstreamProxyConfiguration | |
go test -race -v -timeout 2m -failfast ./cmd/... -run TestClientHalfCloseConnection | |
- name: Install goveralls | |
env: | |
GO111MODULE: off | |
run: go get github.com/mattn/goveralls | |
- name: Send coverage | |
env: | |
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: goveralls -coverprofile=.covprofile -service=github |