Skip to content

ci: fix ginkgo install #393

ci: fix ginkgo install

ci: fix ginkgo install #393

Workflow file for this run

name: test
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
go-version: [1.17.x]
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
env:
TERM: xterm-256color
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Install Ginkgo
run: go get -u github.com/onsi/ginkgo/[email protected]
- name: Test
run: ginkgo -skip="GetQuotes Response" -cover ./...
coverage:
runs-on: ubuntu-latest
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v2
with:
go-version: 1.17.x
- name: Checkout code
uses: actions/checkout@v2
- name: Install Ginkgo
run: go get -u github.com/onsi/ginkgo/[email protected]
- name: Calc coverage
run: |
ginkgo -skip="GetQuotes Response" -cover -outputdir=./ -coverprofile=coverage.out ./...
- name: Convert coverage.out to coverage.lcov
uses: jandelgado/[email protected]
- name: Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov