mirror of
https://github.com/apple/pkl.git
synced 2026-04-18 14:39:54 +02:00
Add CI check to test patch file (#253)
This tests that the patch file can apply in CI.
This commit is contained in:
@@ -21,7 +21,9 @@ import "jobs/GradleCheckJob.pkl"
|
|||||||
import "jobs/DeployJob.pkl"
|
import "jobs/DeployJob.pkl"
|
||||||
import "jobs/SimpleGradleJob.pkl"
|
import "jobs/SimpleGradleJob.pkl"
|
||||||
|
|
||||||
local prbJobs: Listing<String> = gradleCheckJobs.keys.toListing()
|
local prbJobs: Listing<String> = (gradleCheckJobs.keys.toListing()) {
|
||||||
|
"check-patch-file"
|
||||||
|
}
|
||||||
|
|
||||||
local buildAndTestJobs = (prbJobs) {
|
local buildAndTestJobs = (prbJobs) {
|
||||||
"bench"
|
"bench"
|
||||||
@@ -151,4 +153,18 @@ jobs {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
["check-patch-file"] {
|
||||||
|
docker {
|
||||||
|
new { image = "cimg/base:current" }
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
"checkout"
|
||||||
|
new RunStep {
|
||||||
|
// language=bash
|
||||||
|
command = #"""
|
||||||
|
git apply --reject patches/graalVm23.patch
|
||||||
|
"""#
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -708,6 +708,13 @@ jobs:
|
|||||||
name: Publish release on GitHub
|
name: Publish release on GitHub
|
||||||
docker:
|
docker:
|
||||||
- image: maniator/gh:v2.40.1
|
- image: maniator/gh:v2.40.1
|
||||||
|
check-patch-file:
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run:
|
||||||
|
command: git apply --reject patches/graalVm23.patch
|
||||||
|
docker:
|
||||||
|
- image: cimg/base:current
|
||||||
trigger-docsite-build:
|
trigger-docsite-build:
|
||||||
steps:
|
steps:
|
||||||
- run:
|
- run:
|
||||||
@@ -749,6 +756,10 @@ workflows:
|
|||||||
requires:
|
requires:
|
||||||
- hold
|
- hold
|
||||||
- pr-approval/authenticate
|
- pr-approval/authenticate
|
||||||
|
- check-patch-file:
|
||||||
|
requires:
|
||||||
|
- hold
|
||||||
|
- pr-approval/authenticate
|
||||||
when:
|
when:
|
||||||
matches:
|
matches:
|
||||||
value: << pipeline.git.branch >>
|
value: << pipeline.git.branch >>
|
||||||
@@ -757,6 +768,7 @@ workflows:
|
|||||||
jobs:
|
jobs:
|
||||||
- gradle-check-jdk11
|
- gradle-check-jdk11
|
||||||
- gradle-check-jdk17
|
- gradle-check-jdk17
|
||||||
|
- check-patch-file
|
||||||
- bench
|
- bench
|
||||||
- pkl-cli-macOS-amd64-snapshot
|
- pkl-cli-macOS-amd64-snapshot
|
||||||
- pkl-cli-linux-amd64-snapshot
|
- pkl-cli-linux-amd64-snapshot
|
||||||
@@ -767,6 +779,7 @@ workflows:
|
|||||||
requires:
|
requires:
|
||||||
- gradle-check-jdk11
|
- gradle-check-jdk11
|
||||||
- gradle-check-jdk17
|
- gradle-check-jdk17
|
||||||
|
- check-patch-file
|
||||||
- bench
|
- bench
|
||||||
- pkl-cli-macOS-amd64-snapshot
|
- pkl-cli-macOS-amd64-snapshot
|
||||||
- pkl-cli-linux-amd64-snapshot
|
- pkl-cli-linux-amd64-snapshot
|
||||||
@@ -797,6 +810,12 @@ workflows:
|
|||||||
ignore: /.*/
|
ignore: /.*/
|
||||||
tags:
|
tags:
|
||||||
only: /^v?\d+\.\d+\.\d+$/
|
only: /^v?\d+\.\d+\.\d+$/
|
||||||
|
- check-patch-file:
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
ignore: /.*/
|
||||||
|
tags:
|
||||||
|
only: /^v?\d+\.\d+\.\d+$/
|
||||||
- bench:
|
- bench:
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
@@ -837,6 +856,7 @@ workflows:
|
|||||||
requires:
|
requires:
|
||||||
- gradle-check-jdk11
|
- gradle-check-jdk11
|
||||||
- gradle-check-jdk17
|
- gradle-check-jdk17
|
||||||
|
- check-patch-file
|
||||||
- bench
|
- bench
|
||||||
- pkl-cli-macOS-amd64-release
|
- pkl-cli-macOS-amd64-release
|
||||||
- pkl-cli-linux-amd64-release
|
- pkl-cli-linux-amd64-release
|
||||||
|
|||||||
Reference in New Issue
Block a user