Browse Source

ci(codecov): fix upload issue with explicit token (#2087)

Signed-off-by: xjasonlyu <xjasonlyu@gmail.com>
Jason Lyu 1 year ago
parent
commit
019be6866b
1 changed files with 4 additions and 3 deletions
  1. 4 3
      .github/workflows/run_test_case.yaml

+ 4 - 3
.github/workflows/run_test_case.yaml

@@ -65,15 +65,16 @@ jobs:
         cp -r sdk/python/ekuiper plugins/portable/pysam/
     - name: Run topotest case
       run: |
-        go test --tags="edgex msgpack script test" --cover -covermode=atomic -coverpkg=github.com/lf-edge/ekuiper/internal/topo -coverprofile=topotest-plugin.out github.com/lf-edge/ekuiper/internal/topo/topotest/plugin
+        go test --tags="edgex msgpack script test" --cover -covermode=atomic -coverpkg=github.com/lf-edge/ekuiper/internal/topo -coverprofile=topotest-plugin.xml github.com/lf-edge/ekuiper/internal/topo/topotest/plugin
     - name: Run test case
       run: |
         source $HOME/.wasmedge/env
-        go test --tags="edgex msgpack script test" --cover -covermode=atomic -coverpkg=./... -coverprofile=coverage.out $(go list ./... | grep -v "github.com/lf-edge/ekuiper/internal/topo/topotest/plugin")
+        go test --tags="edgex msgpack script test" --cover -covermode=atomic -coverpkg=./... -coverprofile=coverage.xml $(go list ./... | grep -v "github.com/lf-edge/ekuiper/internal/topo/topotest/plugin")
     - name: Upload coverage to Codecov
       uses: codecov/codecov-action@v3
       with:
-        files: coverage.out,topotest-plugin.out
+        files: coverage.xml,topotest-plugin.xml
+        token: ${{ secrets.CODECOV_TOKEN }}
         fail_ci_if_error: false
         verbose: true
     - name: Run plugins test case