Skip to content

Commit 25f5bc8

Browse files
committed
Initial commit
0 parents  commit 25f5bc8

File tree

101 files changed

+3757
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+3757
-0
lines changed

.cfformat.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"array.empty_padding": false,
3+
"array.padding": true,
4+
"array.multiline.min_length": 40,
5+
"array.multiline.element_count": 2,
6+
"array.multiline.leading_comma.padding": true,
7+
"array.multiline.leading_comma": false,
8+
"alignment.consecutive.assignments": true,
9+
"alignment.consecutive.properties": true,
10+
"alignment.consecutive.params": true,
11+
"brackets.padding": true,
12+
"comment.asterisks": "align",
13+
"binary_operators.padding": true,
14+
"for_loop_semicolons.padding": true,
15+
"function_call.empty_padding": false,
16+
"function_call.padding": true,
17+
"function_call.multiline.leading_comma.padding": true,
18+
"function_call.casing.builtin": "cfdocs",
19+
"function_call.casing.userdefined": "camel",
20+
"function_call.multiline.element_count": 3,
21+
"function_call.multiline.leading_comma": false,
22+
"function_call.multiline.min_length": 40,
23+
"function_declaration.padding": true,
24+
"function_declaration.empty_padding": false,
25+
"function_declaration.multiline.leading_comma": false,
26+
"function_declaration.multiline.leading_comma.padding": true,
27+
"function_declaration.multiline.element_count": 3,
28+
"function_declaration.multiline.min_length": 40,
29+
"function_declaration.group_to_block_spacing": "spaced",
30+
"function_anonymous.empty_padding": false,
31+
"function_anonymous.group_to_block_spacing": "spaced",
32+
"function_anonymous.multiline.element_count": 3,
33+
"function_anonymous.multiline.leading_comma": false,
34+
"function_anonymous.multiline.leading_comma.padding": true,
35+
"function_anonymous.multiline.min_length": 40,
36+
"function_anonymous.padding": true,
37+
"indent_size": 4,
38+
"keywords.block_to_keyword_spacing": "spaced",
39+
"keywords.group_to_block_spacing": "spaced",
40+
"keywords.padding_inside_group": true,
41+
"keywords.spacing_to_block": "spaced",
42+
"keywords.spacing_to_group": true,
43+
"keywords.empty_group_spacing": false,
44+
"max_columns": 120,
45+
"metadata.multiline.element_count": 3,
46+
"metadata.multiline.min_length": 40,
47+
"newline":"\n",
48+
"property.multiline.element_count": 3,
49+
"property.multiline.min_length": 40,
50+
"parentheses.padding": true,
51+
"strings.quote": "double",
52+
"strings.convertNestedQuotes": false,
53+
"strings.attributes.quote": "double",
54+
"struct.separator": " : ",
55+
"struct.padding": true,
56+
"struct.empty_padding": false,
57+
"struct.multiline.leading_comma": false,
58+
"struct.multiline.leading_comma.padding": true,
59+
"struct.multiline.element_count": 2,
60+
"struct.multiline.min_length": 40,
61+
"tab_indent": true
62+
}

.github/workflows/cron.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Cron
2+
3+
on:
4+
schedule:
5+
- cron: 0 0 * * 1
6+
7+
jobs:
8+
tests:
9+
runs-on: ubuntu-latest
10+
name: Tests
11+
strategy:
12+
fail-fast: true
13+
matrix:
14+
cfengine: ["lucee@5", "lucee@be", "adobe@2016", "adobe@2018", "adobe@be"]
15+
coldbox: ["coldbox@5", "coldbox@6", "coldbox@be"]
16+
javaVersion: ["openjdk8", "openjdk11"]
17+
services:
18+
mysql:
19+
image: mysql:5.7
20+
env:
21+
MYSQL_RANDOM_ROOT_PASSWORD: yes
22+
MYSQL_USER: quick
23+
MYSQL_PASSWORD: quick
24+
MYSQL_DATABASE: quick
25+
ports:
26+
- 3306
27+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
28+
steps:
29+
- name: Checkout Repository
30+
uses: actions/checkout@v2
31+
32+
- name: Setup Java JDK
33+
uses: actions/[email protected]
34+
with:
35+
java-version: 11
36+
37+
- name: Set Up CommandBox
38+
uses: elpete/[email protected]
39+
40+
- name: Install dependencies
41+
run: |
42+
box install
43+
box config set modules.commandbox-dotenv.checkEnvPreServerStart=false
44+
box install ${{ matrix.coldbox }} --noSave
45+
46+
- name: Start server
47+
env:
48+
DB_HOST: localhost
49+
DB_PORT: ${{ job.services.mysql.ports[3306] }}
50+
DB_NAME: quick
51+
DB_USER: quick
52+
DB_PASSWORD: quick
53+
run: box server start cfengine=${{ matrix.cfengine }} javaVersion=${{ matrix.javaVersion }}
54+
55+
- name: Run TestBox Tests
56+
env:
57+
DB_HOST: localhost
58+
DB_PORT: ${{ job.services.mysql.ports[3306] }}
59+
DB_NAME: quick
60+
DB_USER: quick
61+
DB_PASSWORD: quick
62+
run: box testbox run

.github/workflows/pr.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
name: PRs and Branches
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- "main"
7+
- "master"
8+
- "development"
9+
pull_request:
10+
branches:
11+
- main
12+
- master
13+
- development
14+
15+
jobs:
16+
tests:
17+
runs-on: ubuntu-latest
18+
name: Tests
19+
strategy:
20+
fail-fast: true
21+
matrix:
22+
cfengine: ["lucee@5", "adobe@2016", "adobe@2018"]
23+
coldbox: ["coldbox@5", "coldbox@6"]
24+
services:
25+
mysql:
26+
image: mysql:5.7
27+
env:
28+
MYSQL_RANDOM_ROOT_PASSWORD: yes
29+
MYSQL_USER: quick
30+
MYSQL_PASSWORD: quick
31+
MYSQL_DATABASE: quick
32+
ports:
33+
- 3306
34+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
35+
steps:
36+
- name: Checkout Repository
37+
uses: actions/checkout@v2
38+
39+
- name: Setup Java JDK
40+
uses: actions/[email protected]
41+
with:
42+
java-version: 11
43+
44+
- name: Set Up CommandBox
45+
uses: elpete/[email protected]
46+
47+
- name: Install dependencies
48+
run: |
49+
box install
50+
box config set modules.commandbox-dotenv.checkEnvPreServerStart=false
51+
box install ${{ matrix.coldbox }} --noSave
52+
53+
- name: Start server
54+
env:
55+
DB_HOST: localhost
56+
DB_PORT: ${{ job.services.mysql.ports[3306] }}
57+
DB_NAME: quick
58+
DB_USER: quick
59+
DB_PASSWORD: quick
60+
run: box server start cfengine=${{ matrix.cfengine }}
61+
62+
- name: Run TestBox Tests
63+
env:
64+
DB_HOST: localhost
65+
DB_PORT: ${{ job.services.mysql.ports[3306] }}
66+
DB_NAME: quick
67+
DB_USER: quick
68+
DB_PASSWORD: quick
69+
run: box testbox run
70+
71+
format:
72+
runs-on: ubuntu-latest
73+
name: Format
74+
steps:
75+
- name: Checkout Repository
76+
uses: actions/checkout@v2
77+
78+
- name: Setup Java JDK
79+
uses: actions/[email protected]
80+
with:
81+
java-version: 11
82+
83+
- name: Set Up CommandBox
84+
uses: elpete/[email protected]
85+
86+
- name: Install CFFormat
87+
run: box install commandbox-cfformat
88+
89+
- name: Run CFFormat
90+
run: box run-script format
91+
92+
- name: Commit Format Changes
93+
uses: stefanzweifel/git-auto-commit-action@v4
94+
with:
95+
commit_message: Apply cfformat changes

.github/workflows/prerelease.yml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: Prerelease
2+
3+
on:
4+
push:
5+
branches:
6+
- development
7+
8+
jobs:
9+
tests:
10+
name: Tests
11+
if: "!contains(github.event.head_commit.message, '__SEMANTIC RELEASE VERSION UPDATE__')"
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: true
15+
matrix:
16+
cfengine: ["lucee@5", "adobe@2016", "adobe@2018"]
17+
coldbox: ["coldbox@5", "coldbox@6"]
18+
services:
19+
mysql:
20+
image: mysql:5.7
21+
env:
22+
MYSQL_RANDOM_ROOT_PASSWORD: yes
23+
MYSQL_USER: quick
24+
MYSQL_PASSWORD: quick
25+
MYSQL_DATABASE: quick
26+
ports:
27+
- 3306
28+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
29+
steps:
30+
- name: Checkout Repository
31+
uses: actions/checkout@v2
32+
33+
- name: Setup Java JDK
34+
uses: actions/[email protected]
35+
with:
36+
java-version: 11
37+
38+
- name: Set Up CommandBox
39+
uses: elpete/[email protected]
40+
41+
- name: Install dependencies
42+
run: |
43+
box install
44+
box config set modules.commandbox-dotenv.checkEnvPreServerStart=false
45+
box install ${{ matrix.coldbox }} --noSave
46+
47+
- name: Start server
48+
env:
49+
DB_HOST: localhost
50+
DB_PORT: ${{ job.services.mysql.ports[3306] }}
51+
DB_NAME: quick
52+
DB_USER: quick
53+
DB_PASSWORD: quick
54+
run: box server start cfengine=${{ matrix.cfengine }}
55+
56+
- name: Run TestBox Tests
57+
env:
58+
DB_HOST: localhost
59+
DB_PORT: ${{ job.services.mysql.ports[3306] }}
60+
DB_NAME: quick
61+
DB_USER: quick
62+
DB_PASSWORD: quick
63+
run: box testbox run
64+
65+
# release:
66+
# name: Semantic Release
67+
# if: "!contains(github.event.head_commit.message, '__SEMANTIC RELEASE VERSION UPDATE__')"
68+
# needs: tests
69+
# runs-on: ubuntu-latest
70+
# env:
71+
# GA_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
72+
# steps:
73+
# - name: Checkout Repository
74+
# uses: actions/checkout@v2
75+
# with:
76+
# fetch-depth: 0
77+
78+
# - name: Setup Java JDK
79+
# uses: actions/[email protected]
80+
# with:
81+
# java-version: 11
82+
83+
# - name: Set Up CommandBox
84+
# uses: elpete/[email protected]
85+
86+
# - name: Install and Configure Semantic Release
87+
# run: |
88+
# box install commandbox-semantic-release
89+
# box config set endpoints.forgebox.APIToken=${{ secrets.FORGEBOX_TOKEN }}
90+
# box config set modules.commandbox-semantic-release.targetBranch=development
91+
# box config set modules.commandbox-semantic-release.plugins='{ "VerifyConditions": "GitHubActionsConditionsVerifier@commandbox-semantic-release", "FetchLastRelease": "ForgeBoxReleaseFetcher@commandbox-semantic-release", "RetrieveCommits": "JGitCommitsRetriever@commandbox-semantic-release", "ParseCommit": "ConventionalChangelogParser@commandbox-semantic-release", "FilterCommits": "DefaultCommitFilterer@commandbox-semantic-release", "AnalyzeCommits": "DefaultCommitAnalyzer@commandbox-semantic-release", "VerifyRelease": "NullReleaseVerifier@commandbox-semantic-release", "GenerateNotes": "GitHubMarkdownNotesGenerator@commandbox-semantic-release", "UpdateChangelog": "FileAppendChangelogUpdater@commandbox-semantic-release", "CommitArtifacts": "NullArtifactsCommitter@commandbox-semantic-release", "PublishRelease": "ForgeBoxReleasePublisher@commandbox-semantic-release", "PublicizeRelease": "GitHubReleasePublicizer@commandbox-semantic-release" }'
92+
93+
# - name: Run Semantic Release
94+
# env:
95+
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
96+
# run: box semantic-release --prerelease

0 commit comments

Comments
 (0)