From 85c20862a28eb7bdcf92e8afa9d81b40ed86bda0 Mon Sep 17 00:00:00 2001 From: Piasy Date: Sat, 11 Jan 2025 18:52:09 +0800 Subject: [PATCH] fix coverage badge --- .github/workflows/{test_and_run_demo.yaml => ci.yaml} | 5 ++--- README.md | 2 +- .../piasy/kmp/socketio/engineio/transports/PollingXHRTest.kt | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) rename .github/workflows/{test_and_run_demo.yaml => ci.yaml} (96%) diff --git a/.github/workflows/test_and_run_demo.yaml b/.github/workflows/ci.yaml similarity index 96% rename from .github/workflows/test_and_run_demo.yaml rename to .github/workflows/ci.yaml index 1ad27c0..df98027 100644 --- a/.github/workflows/test_and_run_demo.yaml +++ b/.github/workflows/ci.yaml @@ -1,7 +1,7 @@ # https://github.com/Kotlin/multiplatform-library-template/blob/main/.github/workflows/gradle.yml # https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle -name: kmp-socketio build and test. +name: CI on: push: @@ -68,10 +68,9 @@ jobs: - name: Create Coverage Badges uses: jaywcjlove/coverage-badges-cli@main with: - style: flat source: ${{ github.workspace }}/kmp-socketio/build/reports/kover/coverage.json output: dist/badges.svg - jsonPath: totals.instructions.pct + jsonPath: total.instructions.pct - name: Deploy uses: peaceiris/actions-gh-pages@v4 if: ${{ github.ref == 'refs/heads/main' }} diff --git a/README.md b/README.md index 51daf15..56a438e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ KMP (pure Kotlin) implementation of SocketIO client. -![Maven Central Version](https://img.shields.io/maven-central/v/com.piasy/kmp-socketio) ![Main branch status](https://github.com/HackWebRTC/kmp-socketio/actions/workflows/test_and_run_demo.yaml/badge.svg?branch=main) +![Maven Central Version](https://img.shields.io/maven-central/v/com.piasy/kmp-socketio) ![Main branch status](https://github.com/HackWebRTC/kmp-socketio/actions/workflows/ci.yaml/badge.svg?branch=main) ![Coverage](https://hackwebrtc.github.io/kmp-socketio/badges.svg) ## Supported platforms diff --git a/kmp-socketio/src/jvmTest/kotlin/com/piasy/kmp/socketio/engineio/transports/PollingXHRTest.kt b/kmp-socketio/src/jvmTest/kotlin/com/piasy/kmp/socketio/engineio/transports/PollingXHRTest.kt index aec639a..80e120c 100644 --- a/kmp-socketio/src/jvmTest/kotlin/com/piasy/kmp/socketio/engineio/transports/PollingXHRTest.kt +++ b/kmp-socketio/src/jvmTest/kotlin/com/piasy/kmp/socketio/engineio/transports/PollingXHRTest.kt @@ -250,7 +250,7 @@ class PollingXHRTest : BaseTest() { polling.polling.open() waitExec(this) polling.polling.close() - waitExec(this, 1000) + waitExec(this, 1500) coVerify(exactly = 3) { polling.factory.httpRequest(any(), any()) } assertEquals(