Skip to content

feat(client): add option to log requests and responses #485

feat(client): add option to log requests and responses

feat(client): add option to log requests and responses #485

Workflow file for this run

name: Upcloud go api test
on:
pull_request:
jobs:
test:
name: test
runs-on: ubuntu-latest
strategy:
matrix:
# support two latest major versions of Go, following the Go security policy
# in which these versions get security updates. See https://golang.org/security
go-version: [1.22.x, 1.23.x]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ matrix.go-version }}
- name: test
env:
UPCLOUD_GO_SDK_TEST_NO_CREDENTIALS: yes
UPCLOUD_GO_SDK_TEST_DELETE_RESOURCES: yes
UPCLOUD_GO_SDK_TEST_USER: ${{ secrets.UPCLOUD_GO_SDK_TEST_USER }}
UPCLOUD_GO_SDK_TEST_PASSWORD: ${{ secrets.UPCLOUD_GO_SDK_TEST_PASSWORD }}
run: go test ./... -parallel 1 -timeout 60m