generated from korlibs/korlibs-library-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update template: codecov + kover + binary compatibility
- Loading branch information
Showing
5 changed files
with
88 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: CODECOV | ||
# https://docs.github.com/en/actions/learn-github-actions/expressions | ||
|
||
on: | ||
push: | ||
branches: [ main, 'release/**' ] | ||
pull_request: | ||
branches: [ main, 'release/**' ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
CI: true | ||
|
||
JAVA_VERSION: 17 | ||
JAVA_DISTRIBUTION: zulu | ||
|
||
jobs: | ||
test: | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- { uses: actions/checkout@v4 } | ||
- { name: Use Node.js 20.x, uses: actions/setup-node@v4, with: { node-version: 20.x } } | ||
- { name: Setup Deno, uses: denoland/setup-deno@v1, with: { deno-version: "1.44.4" } } | ||
- { name: Replace gradle wrapper, run: "sed 's/-all/-bin/g' gradle/wrapper/gradle-wrapper.properties > gradle/wrapper/gradle-wrapper.properties.bak; cp gradle/wrapper/gradle-wrapper.properties.bak gradle/wrapper/gradle-wrapper.properties" } | ||
- { name: Set up JDK, uses: actions/setup-java@v4, with: { distribution: "${{ env.JAVA_DISTRIBUTION }}", java-version: "${{ env.JAVA_VERSION }}" } } | ||
- { name: Prepare Gradle, uses: gradle/actions/setup-gradle@d9c87d481d55275bb5441eef3fe0e46805f9ef70 } # https://github.com/gradle/actions/releases/tag/v3.5.0 | ||
- { name: Start gradle, run: ./gradlew } | ||
- { name: Code coverage, run: ./gradlew koverXmlReport } | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v4.0.1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
public abstract interface class korlibs/io/lang/IJSEval { | ||
public abstract fun getAvailable ()Z | ||
public abstract fun getGlobalThis ()Ljava/lang/Object; | ||
public abstract fun invoke (Ljava/lang/String;Ljava/util/Map;)Ljava/lang/Object; | ||
public abstract fun invokeSuspend (Ljava/lang/String;Ljava/util/Map;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; | ||
} | ||
|
||
public final class korlibs/io/lang/IJSEval$DefaultImpls { | ||
public static fun invokeSuspend (Lkorlibs/io/lang/IJSEval;Ljava/lang/String;Ljava/util/Map;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; | ||
} | ||
|
||
public final class korlibs/io/lang/JSEvalKt { | ||
public static final fun expr (Lkorlibs/io/lang/IJSEval;Ljava/lang/String;[Lkotlin/Pair;)Ljava/lang/Object; | ||
public static final fun exprSuspend (Lkorlibs/io/lang/IJSEval;Ljava/lang/String;[Lkotlin/Pair;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; | ||
public static final fun invoke (Lkorlibs/io/lang/IJSEval;Ljava/lang/String;[Lkotlin/Pair;)Ljava/lang/Object; | ||
public static final fun invokeSuspend (Lkorlibs/io/lang/IJSEval;Ljava/lang/String;[Lkotlin/Pair;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; | ||
} | ||
|
||
public final class korlibs/io/lang/JSEval_androidKt { | ||
public static final fun getJSEval ()Lkorlibs/io/lang/IJSEval; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
public abstract interface class korlibs/io/lang/IJSEval { | ||
public abstract fun getAvailable ()Z | ||
public abstract fun getGlobalThis ()Ljava/lang/Object; | ||
public abstract fun invoke (Ljava/lang/String;Ljava/util/Map;)Ljava/lang/Object; | ||
public abstract fun invokeSuspend (Ljava/lang/String;Ljava/util/Map;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; | ||
} | ||
|
||
public final class korlibs/io/lang/IJSEval$DefaultImpls { | ||
public static fun invokeSuspend (Lkorlibs/io/lang/IJSEval;Ljava/lang/String;Ljava/util/Map;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; | ||
} | ||
|
||
public final class korlibs/io/lang/JSEvalKt { | ||
public static final fun expr (Lkorlibs/io/lang/IJSEval;Ljava/lang/String;[Lkotlin/Pair;)Ljava/lang/Object; | ||
public static final fun exprSuspend (Lkorlibs/io/lang/IJSEval;Ljava/lang/String;[Lkotlin/Pair;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; | ||
public static final fun invoke (Lkorlibs/io/lang/IJSEval;Ljava/lang/String;[Lkotlin/Pair;)Ljava/lang/Object; | ||
public static final fun invokeSuspend (Lkorlibs/io/lang/IJSEval;Ljava/lang/String;[Lkotlin/Pair;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; | ||
} | ||
|
||
public final class korlibs/io/lang/JSEval_jvmKt { | ||
public static final fun getJSEval ()Lkorlibs/io/lang/IJSEval; | ||
} | ||
|