Use packages for CircleCI definition (#95)

This commit is contained in:
Daniel Chao
2024-02-08 09:58:29 -08:00
committed by GitHub
parent 8e6ddfb9b7
commit 9dc7eb2938
6 changed files with 22 additions and 23 deletions
+5 -5
View File
@@ -15,7 +15,7 @@
//===----------------------------------------------------------------------===//
abstract module GradleJob
import ".../pkl-pantry/packages/com.circleci.v2/CircleCI.pkl"
import "package://pkg.pkl-lang.org/pkl-pantry/com.circleci.v2@1.0.0#/Config.pkl"
/// Whether this is a release build or not.
isRelease: Boolean = false
@@ -28,16 +28,16 @@ fixed gradleArgs = new Listing {
}
}.join(" ")
steps: Listing<CircleCI.Step>
steps: Listing<Config.Step>
job: CircleCI.Job = new {
job: Config.Job = new {
environment {
["LANG"] = "en_US.UTF-8"
}
steps {
"checkout"
...module.steps
new CircleCI.RunStep {
new Config.RunStep {
// find all test results and write them to the home dir
name = "Gather test results"
command = """
@@ -46,7 +46,7 @@ job: CircleCI.Job = new {
"""
`when` = "always"
}
new CircleCI.StoreTestResults {
new Config.StoreTestResults {
path = "~/test-results"
}
}