Skip to content

Commit

Permalink
ci: fix ginkgo test command
Browse files Browse the repository at this point in the history
  • Loading branch information
achannarasappa committed Dec 19, 2023
1 parent 469eb7c commit 93a60f4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
-
Expand All @@ -36,9 +36,9 @@ jobs:
run: sudo apt-get install upx -y
-
name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.17
go-version: 1.18
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/test-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,5 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Install Ginkgo
working-directory: ./common
run: go install github.com/onsi/ginkgo/v2
- name: Test
run: ginkgo -cover -focus="GetQuotes Response" ./...
run: go run github.com/onsi/ginkgo/ginkgo@v1.16.5 -r -v ./internal/quote/yahoo/ -focus "GetQuotes Response"
17 changes: 6 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,25 @@ jobs:
TERM: xterm-256color
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Install Ginkgo
run: go get -u github.com/onsi/ginkgo/ginkgo@v1.16.4
uses: actions/checkout@v3
- name: Test
run: ginkgo -skip="GetQuotes Response" -cover ./...
run: go run github.com/onsi/ginkgo/ginkgo@v1.16.5 -skip="GetQuotes Response" -cover ./...
coverage:
runs-on: ubuntu-latest
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.18.x
- name: Checkout code
uses: actions/checkout@v2
- name: Install Ginkgo
run: go get -u github.com/onsi/ginkgo/ginkgo@v1.16.4
uses: actions/checkout@v3
- name: Calc coverage
run: |
ginkgo -skip="GetQuotes Response" -cover -outputdir=./ -coverprofile=coverage.out ./...
run: go run github.com/onsi/ginkgo/ginkgo@v1.16.5 -skip="GetQuotes Response" -cover -outputdir=./ -coverprofile=coverage.out ./...
- name: Convert coverage.out to coverage.lcov
uses: jandelgado/gcov2lcov-action@v1.0.6
- name: Coveralls
Expand Down

0 comments on commit 93a60f4

Please sign in to comment.