mirror of
https://github.com/apple/pkl.git
synced 2026-03-18 15:23:58 +01: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/SimpleGradleJob.pkl"
|
||||
|
||||
local prbJobs: Listing<String> = gradleCheckJobs.keys.toListing()
|
||||
local prbJobs: Listing<String> = (gradleCheckJobs.keys.toListing()) {
|
||||
"check-patch-file"
|
||||
}
|
||||
|
||||
local buildAndTestJobs = (prbJobs) {
|
||||
"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
|
||||
docker:
|
||||
- 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:
|
||||
steps:
|
||||
- run:
|
||||
@@ -749,6 +756,10 @@ workflows:
|
||||
requires:
|
||||
- hold
|
||||
- pr-approval/authenticate
|
||||
- check-patch-file:
|
||||
requires:
|
||||
- hold
|
||||
- pr-approval/authenticate
|
||||
when:
|
||||
matches:
|
||||
value: << pipeline.git.branch >>
|
||||
@@ -757,6 +768,7 @@ workflows:
|
||||
jobs:
|
||||
- gradle-check-jdk11
|
||||
- gradle-check-jdk17
|
||||
- check-patch-file
|
||||
- bench
|
||||
- pkl-cli-macOS-amd64-snapshot
|
||||
- pkl-cli-linux-amd64-snapshot
|
||||
@@ -767,6 +779,7 @@ workflows:
|
||||
requires:
|
||||
- gradle-check-jdk11
|
||||
- gradle-check-jdk17
|
||||
- check-patch-file
|
||||
- bench
|
||||
- pkl-cli-macOS-amd64-snapshot
|
||||
- pkl-cli-linux-amd64-snapshot
|
||||
@@ -797,6 +810,12 @@ workflows:
|
||||
ignore: /.*/
|
||||
tags:
|
||||
only: /^v?\d+\.\d+\.\d+$/
|
||||
- check-patch-file:
|
||||
filters:
|
||||
branches:
|
||||
ignore: /.*/
|
||||
tags:
|
||||
only: /^v?\d+\.\d+\.\d+$/
|
||||
- bench:
|
||||
filters:
|
||||
branches:
|
||||
@@ -837,6 +856,7 @@ workflows:
|
||||
requires:
|
||||
- gradle-check-jdk11
|
||||
- gradle-check-jdk17
|
||||
- check-patch-file
|
||||
- bench
|
||||
- pkl-cli-macOS-amd64-release
|
||||
- pkl-cli-linux-amd64-release
|
||||
|
||||
Reference in New Issue
Block a user