|
|
@ -30,14 +30,19 @@ jobs:
|
|
|
|
os: [ubuntu-18.04, ubuntu-20.04]
|
|
|
|
os: [ubuntu-18.04, ubuntu-20.04]
|
|
|
|
timeout-minutes: 20
|
|
|
|
timeout-minutes: 20
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Install Go
|
|
|
|
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
go-version: '1.19.1'
|
|
|
|
|
|
|
|
- name: Checkout
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
|
|
|
fetch-depth: 1
|
|
|
|
|
|
|
|
- name: Install Go
|
|
|
|
|
|
|
|
uses: actions/setup-go@v3
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
go-version: '1.19.1'
|
|
|
|
|
|
|
|
check-latest: true
|
|
|
|
|
|
|
|
cache: true
|
|
|
|
|
|
|
|
cache-dependency-path: |
|
|
|
|
|
|
|
|
**/go.sum
|
|
|
|
|
|
|
|
**/go.mod
|
|
|
|
- name: Run Unit Tests
|
|
|
|
- name: Run Unit Tests
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
go test -coverpkg=./... -coverprofile=coverage.out ./pkg/... -run Unit
|
|
|
|
go test -coverpkg=./... -coverprofile=coverage.out ./pkg/... -run Unit
|
|
|
|