-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(abg): support different binding versions on different server routes
- Loading branch information
Showing
10 changed files
with
222 additions
and
31 deletions.
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
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
33 changes: 33 additions & 0 deletions
33
.github/workflows/test-script-consuming-jit-bindings-v1.main.do-not-compile.kts
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,33 @@ | ||
#!/usr/bin/env kotlin | ||
@file:Repository("https://repo.maven.apache.org/maven2/") | ||
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:1.13.0") | ||
|
||
@file:Repository("http://localhost:8080/v1") | ||
|
||
// Regular, top-level action. | ||
@file:DependsOn("actions:checkout:v4") | ||
|
||
// Nested action. | ||
@file:DependsOn("gradle:actions__setup-gradle:v3") | ||
|
||
// Using specific version. | ||
@file:DependsOn("actions:cache:v3.3.3") | ||
|
||
// Always untyped action. | ||
@file:DependsOn("typesafegithub:always-untyped-action-for-tests:v1") | ||
|
||
import io.github.typesafegithub.workflows.actions.actions.Cache | ||
import io.github.typesafegithub.workflows.actions.actions.Checkout | ||
import io.github.typesafegithub.workflows.actions.actions.Checkout_Untyped | ||
import io.github.typesafegithub.workflows.actions.gradle.ActionsSetupGradle | ||
import io.github.typesafegithub.workflows.actions.typesafegithub.AlwaysUntypedActionForTests_Untyped | ||
|
||
println(Checkout_Untyped(fetchTags_Untyped = "false")) | ||
println(Checkout(fetchTags = false)) | ||
println(Checkout(fetchTags_Untyped = "false")) | ||
println(AlwaysUntypedActionForTests_Untyped(foobar_Untyped = "baz")) | ||
println(ActionsSetupGradle()) | ||
println(Cache(path = listOf("some-path"), key = "some-key")) | ||
|
||
// Ensure that 'copy(...)' method is exposed. | ||
Checkout(fetchTags = false).copy(fetchTags = true) |
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
12 changes: 12 additions & 0 deletions
12
...in/io/github/typesafegithub/workflows/actionbindinggenerator/versioning/BindingVersion.kt
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,12 @@ | ||
package io.github.typesafegithub.workflows.actionbindinggenerator.versioning | ||
|
||
public enum class BindingVersion( | ||
public val isDeprecated: Boolean = false, | ||
public val isExperimental: Boolean = true, | ||
public val libraryVersion: String, | ||
) { | ||
V1(isExperimental = false, libraryVersion = "3.0.0"), | ||
; | ||
|
||
override fun toString(): String = super.toString().lowercase() | ||
} |
Oops, something went wrong.