diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b97652a..ef0725e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -33,4 +33,9 @@ jobs: - name: Build run: go mod tidy - name: Test - run: go test -race -coverprofile=coverage.txt -covermode=atomic ./client/... \ No newline at end of file + run: go test -race -coverprofile=coverage.txt -covermode=atomic ./client/... + - uses: codecov/codecov-action@v4 + with: + flags: golang # optional + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index 9c9004b..3147caa 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -29,4 +29,9 @@ jobs: with: java-version: ${{ matrix.java }} - name: Test - run: mvn test -B \ No newline at end of file + run: mvn test -B + - uses: codecov/codecov-action@v4 + with: + flags: java # optional + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 962c990..abd2642 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -27,4 +27,9 @@ jobs: run: pip install alibabacloud-tea coverage pytest alibabacloud-tea-util alibabacloud_credentials alibabacloud_openapi_util alibabacloud_gateway_spi alibabacloud_tea_xml httpretty - name: Test with unittest run: | - coverage run --source="./alibabacloud_tea_openapi" -m pytest tests/test_* \ No newline at end of file + coverage run --source="./alibabacloud_tea_openapi" -m pytest tests/test_* + - uses: codecov/codecov-action@v4 + with: + flags: python # optional + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/ts.yml b/.github/workflows/ts.yml index b771694..3e95701 100644 --- a/.github/workflows/ts.yml +++ b/.github/workflows/ts.yml @@ -26,4 +26,9 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm install - - run: npm run ci \ No newline at end of file + - run: npm run test-cov + - uses: codecov/codecov-action@v4 + with: + flags: typescript # optional + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/ts/package.json b/ts/package.json index ead2926..cb45a6e 100644 --- a/ts/package.json +++ b/ts/package.json @@ -6,7 +6,6 @@ "scripts": { "test": "mocha -r ts-node/register -r source-map-support/register test/**/*.spec.ts --timeout=10000", "test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test", - "ci": "npm run test-cov && codecov", "build": "tsc", "prepublishOnly": "tsc" }, @@ -14,7 +13,6 @@ "license": "ISC", "devDependencies": { "@types/mocha": "^5.2.7", - "codecov": "^3.6.1", "mocha": "^6.2.0", "@types/node": "^12.12.26", "nyc": "^15.0.0",