Skip to content

Commit

Permalink
test: split unit test and integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian committed Mar 26, 2024
1 parent 7712dfb commit 77c1e55
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/go.yml
Expand Up @@ -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 }}
Expand All @@ -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/...

0 comments on commit 77c1e55

Please sign in to comment.