diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 962ae50..20acde1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - @@ -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 diff --git a/.github/workflows/test-contract.yml b/.github/workflows/test-contract.yml index 2003487..bdc4d2d 100644 --- a/.github/workflows/test-contract.yml +++ b/.github/workflows/test-contract.yml @@ -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" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 018851f..343bcde 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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