diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 3655b853b..7624a7d87 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -24,7 +24,12 @@ jobs: with: go-version: ${{ matrix.go-version }} - - name: Test + - name: Unit Test + run: go test -race -coverprofile=coverage.txt -covermode=atomic ./sdk/... + - name: Upload coverage + run: bash <(curl -s https://codecov.io/bash) + + - name: Integration Test env: ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }} ACCESS_KEY_SECRET: ${{ secrets.ACCESS_KEY_SECRET }} @@ -33,8 +38,4 @@ jobs: PUBLIC_KEY_ID: ${{ secrets.PUBLIC_KEY_ID }} RSA_FILE_AES_KEY: ${{ secrets.RSA_FILE_AES_KEY }} CONCURRENT_ID: "${{ github.run_number }}-${{ strategy.job-index }}" - run: | - go test -race -coverprofile=coverage.txt -covermode=atomic ./sdk/... - test -z $ACCESS_KEY_ID -a -z $ACCESS_KEY_SECRET || go test -v -timeout 120s ./integration/... - - name: Upload coverage - run: bash <(curl -s https://codecov.io/bash) + run: test -z $ACCESS_KEY_ID -a -z $ACCESS_KEY_SECRET || go test -v -timeout 120s ./integration/...