Skip to content

refactor: service client #1172

refactor: service client

refactor: service client #1172

Workflow file for this run

name: build-and-test-linux
on:
pull_request:
push:
branches:
- main
- "releases/*"
jobs:
build-and-test:
# Ref: https://github.com/actions/runner-images/tree/main/images/macos
strategy:
matrix:
os: [ ubuntu-20.04, ubuntu-22.04, ubuntu-latest ]
cgo: [ '1', '0' ]
runs-on: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Go test
env:
CGO_ENABLED: ${{ matrix.cgo }}
run: go test ./...
- run: go test -v -coverprofile=profile.cov ./...
- uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov