-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test case and manifest for Node.js
- Loading branch information
Showing
5 changed files
with
102 additions
and
2 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
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
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,91 @@ | ||
--- | ||
title: "Bump Node.js version" | ||
|
||
scms: | ||
default: | ||
kind: github | ||
spec: | ||
user: "{{ .github.user }}" | ||
email: "{{ .github.email }}" | ||
owner: "{{ requiredEnv .github.owner }}" | ||
repository: "{{ requiredEnv .github.repository }}" | ||
token: "{{ requiredEnv .github.token }}" | ||
username: "{{ .github.username }}" | ||
branch: "{{ .github.branch }}" | ||
|
||
sources: | ||
latestVersion: | ||
kind: githubRelease | ||
name: "Get the latest Node.js version" | ||
spec: | ||
owner: "nodejs" | ||
repository: "node" | ||
token: "{{ requiredEnv .github.token }}" | ||
username: "{{ .github.username }}" | ||
versionFilter: | ||
kind: regex | ||
pattern: '*LTS*' | ||
transformers: | ||
- trimPrefix: "v" | ||
|
||
conditions: | ||
testDockerfileArgVersion: | ||
name: "Does the Dockerfile have an ARG instruction which key is nodejs_version?" | ||
kind: dockerfile | ||
spec: | ||
file: Dockerfile | ||
instruction: | ||
keyword: "ARG" | ||
matcher: "nodejs_version" | ||
testVersionInReadme: | ||
name: "Does the README.adoc have a variable NODEJS_VERSION" | ||
kind: file | ||
spec: | ||
file: README.adoc | ||
matchPattern: '(?m:^:NODEJS_VERSION:.*)' | ||
testVersionInTestHarness: | ||
name: "Does the test harness have variable NODEJS_VERSION" | ||
kind: file | ||
spec: | ||
file: tests/asciidoctor.bats | ||
matchPattern: '(?m:^NODEJS_VERSION=.*)' | ||
|
||
targets: | ||
updateDockerfile: | ||
name: "Update the value of ARG nodejs_version in the Dockerfile" | ||
kind: dockerfile | ||
spec: | ||
file: Dockerfile | ||
instruction: | ||
keyword: "ARG" | ||
matcher: "nodejs_version" | ||
scmID: default | ||
updateTestHarness: | ||
name: "Update the key NODEJS_VERSION in the test harness" | ||
kind: file | ||
spec: | ||
file: tests/asciidoctor.bats | ||
matchPattern: '(?m:^NODEJS_VERSION=.*)' | ||
content: 'NODEJS_VERSION={{ source `latestVersion` }}' | ||
scmID: default | ||
updateReadme: | ||
name: "Update the key NODEJS_VERSION in the README.adoc file" | ||
kind: file | ||
spec: | ||
file: README.adoc | ||
matchPattern: '(?m:^:NODEJS_VERSION:.*)' | ||
content: ':NODEJS_VERSION: {{ source `latestVersion` }}' | ||
scmID: default | ||
|
||
pullrequests: | ||
default: | ||
kind: github | ||
scmID: default | ||
targets: | ||
- updateDockerfile | ||
- updateTestHarness | ||
- updateReadme | ||
spec: | ||
labels: | ||
- chore | ||
- dependencies |