Skip to content

Commit

Permalink
feat: add frontend e2e report on pr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
LiteSun committed Mar 1, 2021
1 parent 816ba9e commit ccd477e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/backend-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: setup go
uses: actions/setup-go@v2.1.3
with:
go-version: '1.13'
go-version: "1.13"

- name: Modify conf.yaml
run: |
Expand Down Expand Up @@ -75,8 +75,7 @@ jobs:
- name: upload coverage profile
working-directory: ./api/test/testdata
run: |
bash <(curl -s https://codecov.io/bash) -f ./integrationcover.out
bash <(curl -s https://codecov.io/bash) -f ./integrationcover.out -F backend-e2e-test
backend-e2e-test-ginkgo:
runs-on: ubuntu-latest
Expand All @@ -87,7 +86,7 @@ jobs:
- name: setup go
uses: actions/setup-go@v2.1.3
with:
go-version: '1.13'
go-version: "1.13"

- name: Modify conf.yaml Configure for use by the manage-api cluster
run: |
Expand Down Expand Up @@ -130,4 +129,4 @@ jobs:
- name: upload coverage profile
working-directory: ./api/test/testdata
run: |
bash <(curl -s https://codecov.io/bash) -f ./integrationcover.out
bash <(curl -s https://codecov.io/bash) -f ./integrationcover.out -F backend-e2e-test-ginkgo
4 changes: 2 additions & 2 deletions .github/workflows/backend-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: setup go
uses: actions/setup-go@v2.1.3
with:
go-version: '1.13'
go-version: "1.13"

- name: run test
run: |
Expand All @@ -36,7 +36,7 @@ jobs:
- name: upload coverage profile
working-directory: ./api
run: |
bash <(curl -s https://codecov.io/bash)
bash <(curl -s https://codecov.io/bash) -F backend-unit-test
- name: run with custom port
working-directory: ./api
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/frontend-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ jobs:

- name: Report e2e coverage
run: npx nyc report --reporter=text-summary

- name: Upload coverage to Codecov
run: |
bash <(curl -s https://codecov.io/bash) -f ./coverage/coverage-final.json -F frontend-e2e-test

0 comments on commit ccd477e

Please sign in to comment.