Skip to content

Commit

Permalink
run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusMcCloud committed Jun 7, 2024
1 parent 21de72e commit e90d07f
Show file tree
Hide file tree
Showing 5 changed files with 525 additions and 26 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/gh-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish to GitHub
name: Execute all Tests
on: workflow_dispatch
permissions:
contents: read
Expand All @@ -16,20 +16,7 @@ jobs:
with:
distribution: 'temurin'
java-version: '11'
- name: Package
- name: allTests
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
arguments: -Pnative.deploy=true publishAllPublicationsToLocalRepository
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
# the publishing section of your build.gradle
- name: Push Maven Artefacts
uses: supsm/copy_file_to_another_repo@master
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_file: 'repo'
destination_repo: 'a-sit-plus/kotlinx.serialization'
destination_branch: 'mvn'
user_email: '[email protected]'
user_name: 'JesusMcCloud'
commit_message: 'Maven Release'
arguments: -Pnative.deploy=true allTests
4 changes: 0 additions & 4 deletions buildSrc/src/main/kotlin/publishing-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,6 @@ afterEvaluate {

publishing {
repositories {
maven {
url = java.io.File(rootProject.projectDir.absolutePath + "/repo").toURI()
name = "local"
}
configureMavenPublication(this, project)
}
}
Expand Down
8 changes: 4 additions & 4 deletions buildSrc/src/main/kotlin/source-sets-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ kotlin {
}
}

/* js {
js {
nodejs {
testTask {
useMocha {
Expand All @@ -67,7 +67,7 @@ kotlin {
wasmWasi {
nodejs()
}
}*/
}

sourceSets.all {
kotlin.srcDirs("$name/src")
Expand Down Expand Up @@ -106,7 +106,7 @@ kotlin {
api("org.jetbrains.kotlin:kotlin-test-junit")
}
}
/*

jsMain {
dependencies {
api("org.jetbrains.kotlin:kotlin-stdlib-js")
Expand Down Expand Up @@ -154,7 +154,7 @@ kotlin {
api("org.jetbrains.kotlin:kotlin-test-wasm-wasi")
}
}
}*/
}
}

sourceSets.matching({ it.name.contains("Test") }).configureEach {
Expand Down
4 changes: 2 additions & 2 deletions formats/json/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ kotlin {
dependencies {
api(project(":kotlinx-serialization-core"))
}
}/*
}
register("jsWasmMain") {
dependsOn(commonMain.get())
}
Expand All @@ -48,7 +48,7 @@ kotlin {
}
named("wasmWasiMain") {
dependsOn(named("jsWasmMain").get())
}*/
}
}
}

Expand Down
Loading

0 comments on commit e90d07f

Please sign in to comment.