Skip to content

Commit b79c747

Browse files
committed
v3.3.0 Release
2 parents 3dbd156 + f706744 commit b79c747

Some content is hidden

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

61 files changed

+3400
-2541
lines changed

.babelrc

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,7 @@
11
{
22
"plugins": [
3-
"@babel/plugin-syntax-dynamic-import"
43
],
5-
"env": {
6-
"test": {
7-
"plugins": [
8-
"dynamic-import-node"
9-
],
10-
"presets": [
11-
[
12-
"@babel/preset-env",
13-
{
14-
"modules": "commonjs",
15-
"targets": {
16-
"node": "current"
17-
}
18-
}
19-
]
20-
]
21-
}
22-
}
23-
}
4+
"presets" : [
5+
"@babel/preset-env"
6+
]
7+
}

test-harness/.cfconfig.json renamed to .cfconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"debuggingReportExecutionTimes":false,
55
"disableInternalCFJavaComponents":false,
66
"inspectTemplate":"always",
7-
"requestTimeout":"0,0,0,90",
7+
"requestTimeout":"0,0,5,0",
88
"robustExceptionEnabled":true,
99
"datasources": {
1010
"coolblog": {
@@ -23,4 +23,4 @@
2323
"validate":"false"
2424
}
2525
}
26-
}
26+
}

.cfformat.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"array.empty_padding": false,
33
"array.padding": true,
4-
"array.multiline.min_length": 40,
4+
"array.multiline.min_length": 50,
55
"array.multiline.element_count": 2,
66
"array.multiline.leading_comma.padding": true,
77
"array.multiline.leading_comma": false,
88
"alignment.consecutive.assignments": true,
99
"alignment.consecutive.properties": true,
1010
"alignment.consecutive.params": true,
11+
"alignment.doc_comments" : true,
1112
"brackets.padding": true,
1213
"comment.asterisks": "align",
1314
"binary_operators.padding": true,
@@ -17,22 +18,22 @@
1718
"function_call.multiline.leading_comma.padding": true,
1819
"function_call.casing.builtin": "cfdocs",
1920
"function_call.casing.userdefined": "camel",
20-
"function_call.multiline.element_count": 2,
21+
"function_call.multiline.element_count": 3,
2122
"function_call.multiline.leading_comma": false,
22-
"function_call.multiline.min_length": 40,
23+
"function_call.multiline.min_length": 50,
2324
"function_declaration.padding": true,
2425
"function_declaration.empty_padding": false,
2526
"function_declaration.multiline.leading_comma": false,
2627
"function_declaration.multiline.leading_comma.padding": true,
27-
"function_declaration.multiline.element_count": 2,
28-
"function_declaration.multiline.min_length": 40,
28+
"function_declaration.multiline.element_count": 3,
29+
"function_declaration.multiline.min_length": 50,
2930
"function_declaration.group_to_block_spacing": "compact",
3031
"function_anonymous.empty_padding": false,
3132
"function_anonymous.group_to_block_spacing": "compact",
32-
"function_anonymous.multiline.element_count": 2,
33+
"function_anonymous.multiline.element_count": 3,
3334
"function_anonymous.multiline.leading_comma": false,
3435
"function_anonymous.multiline.leading_comma.padding": true,
35-
"function_anonymous.multiline.min_length": 40,
36+
"function_anonymous.multiline.min_length": 50,
3637
"function_anonymous.padding": true,
3738
"indent_size": 4,
3839
"keywords.block_to_keyword_spacing": "spaced",
@@ -41,13 +42,13 @@
4142
"keywords.spacing_to_block": "spaced",
4243
"keywords.spacing_to_group": true,
4344
"keywords.empty_group_spacing": false,
44-
"max_columns": 120,
45+
"max_columns": 115,
4546
"metadata.multiline.element_count": 3,
46-
"metadata.multiline.min_length": 40,
47-
"method_call.chain.multiline": 3,
48-
"newline": "\n",
47+
"metadata.multiline.min_length": 50,
48+
"method_call.chain.multiline" : 3,
49+
"newline":"\n",
4950
"property.multiline.element_count": 3,
50-
"property.multiline.min_length": 40,
51+
"property.multiline.min_length": 30,
5152
"parentheses.padding": true,
5253
"strings.quote": "double",
5354
"strings.attributes.quote": "double",
@@ -57,6 +58,6 @@
5758
"struct.multiline.leading_comma": false,
5859
"struct.multiline.leading_comma.padding": true,
5960
"struct.multiline.element_count": 2,
60-
"struct.multiline.min_length": 40,
61+
"struct.multiline.min_length": 60,
6162
"tab_indent": true
62-
}
63+
}
File renamed without changes.

.github/FUNDING.YML

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
patreon: ortussolutions

.github/workflows/ci.yml

Lines changed: 5 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: cbDebugger CI
1+
name: cbdebugger CI
22

33
# Only on Development we build snapshots
44
on:
@@ -15,121 +15,9 @@ jobs:
1515
# Tests First baby! We fail, no build :(
1616
#############################################
1717
tests:
18-
name: Tests
19-
runs-on: ubuntu-20.04
20-
env:
21-
DB_USER: root
22-
DB_PASSWORD: root
23-
strategy:
24-
fail-fast: false
25-
matrix:
26-
cfengine: [ "lucee@5", "adobe@2016", "adobe@2018", "adobe@2021" ]
27-
steps:
28-
- name: Checkout Repository
29-
uses: actions/checkout@v2
30-
31-
- name: Setup Java
32-
uses: actions/setup-java@v2
33-
with:
34-
distribution: "adopt"
35-
java-version: "11"
36-
37-
- name: Setup Database and Fixtures
38-
run: |
39-
sudo /etc/init.d/mysql start
40-
# Create Database
41-
mysql -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} -e 'CREATE DATABASE coolblog;'
42-
# Import Database
43-
mysql -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} < test-harness/tests/resources/coolblog.sql
44-
45-
- name: Setup Environment For Testing Process
46-
working-directory: ./test-harness
47-
run: |
48-
# Setup .env
49-
touch .env
50-
# ENV
51-
printf "DB_HOST=localhost\n" >> .env
52-
printf "DB_USER=${{ env.DB_USER }}\n" >> .env
53-
printf "DB_PASSWORD=${{ env.DB_PASSWORD }}\n" >> .env
54-
printf "DB_CLASS=com.mysql.cj.jdbc.Driver\n" >> .env
55-
printf "DB_BUNDLEVERSION=8.0.19\n" >> .env
56-
printf "DB_BUNDLENAME=com.mysql.cj\n" >> .env
57-
58-
- name: Cache CommandBox Dependencies
59-
uses: actions/cache@v1
60-
if: ${{ true }}
61-
with:
62-
path: ~/.CommandBox/artifacts
63-
key: ${{ runner.OS }}-commandbox-cache-${{ hashFiles( 'box.json' ) }}-${{ hashFiles( 'test-harness/box.json' ) }}
64-
restore-keys: |
65-
${{ runner.OS }}-commandbox-cache-${{ hashFiles( 'box.json' ) }}-${{ hashFiles( 'test-harness/box.json' ) }}
66-
67-
- name: Setup CommandBox
68-
uses: elpete/[email protected]
69-
70-
- name: Install Test Harness Dependencies
71-
working-directory: ./test-harness
72-
run: |
73-
box install
74-
75-
- name: Start ${{ matrix.cfengine }} Server
76-
working-directory: ./test-harness
77-
run: |
78-
box server start serverConfigFile="server-${{ matrix.cfengine }}.json" --noSaveSettings --debug
79-
# Install Adobe 2021 cfpm modules
80-
if [[ "${{ matrix.cfengine }}" == "adobe@2021" ]] ; then
81-
box run-script install:2021
82-
fi
83-
curl http://127.0.0.1:60299
84-
85-
- name: Run Tests
86-
working-directory: ./test-harness
87-
run: |
88-
mkdir tests/results
89-
box package set testbox.runner="http://localhost:60299/tests/runner.cfm"
90-
box testbox run --verbose outputFile=tests/results/test-results outputFormats=json,antjunit
91-
92-
- name: Publish Test Results
93-
uses: EnricoMi/publish-unit-test-result-action@v1
94-
if: always()
95-
with:
96-
files: test-harness/tests/results/**/*.xml
97-
check_name: "${{ matrix.cfengine }} Test Results"
98-
99-
- name: Upload Test Results Artifacts
100-
if: always()
101-
uses: actions/upload-artifact@v2
102-
with:
103-
name: test-results-${{ matrix.cfengine }}
104-
path: |
105-
test-harness/tests/results/**/*
106-
107-
- name: Slack Notification
108-
if: failure()
109-
uses: rtCamp/action-slack-notify@v2
110-
env:
111-
SLACK_CHANNEL: coding
112-
SLACK_COLOR: ${{ job.status }} # or a specific color like 'green' or '#ff00ff'
113-
SLACK_ICON_EMOJI: ":bell:"
114-
SLACK_MESSAGE: '${{ env.MODULE_ID }} tests failed :cry:'
115-
SLACK_TITLE: ${{ env.MODULE_ID }} Tests For ${{ matrix.cfengine }} failed
116-
SLACK_USERNAME: CI
117-
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
118-
119-
- name: Failure Debugging Info
120-
if: ${{ failure() }}
121-
working-directory: ./test-harness
122-
run: |
123-
box server log serverConfigFile="server-${{ matrix.cfengine }}.json"
124-
125-
- name: Upload Debugging Info To Artifacts
126-
if: ${{ failure() }}
127-
uses: actions/upload-artifact@v2
128-
with:
129-
name: Failure Debugging Info - ${{ matrix.cfengine }}
130-
path: |
131-
test-harness/.engine/**/logs/*
132-
test-harness/.engine/**/WEB-INF/cfusion/logs/*
18+
uses: ./.github/workflows/tests.yml
19+
secrets:
20+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
13321

13422
#############################################
13523
# Build Module
@@ -155,17 +43,8 @@ jobs:
15543
with:
15644
node-version: 12.x
15745

158-
- name: Cache CommandBox Dependencies
159-
uses: actions/cache@v1
160-
if: ${{ true }}
161-
with:
162-
path: ~/.CommandBox/artifacts
163-
key: ${{ runner.OS }}-commandbox-cache-${{ hashFiles( 'box.json' ) }}-${{ hashFiles( 'test-harness/box.json' ) }}
164-
restore-keys: |
165-
${{ runner.OS }}-commandbox-cache-${{ hashFiles( 'box.json' ) }}-${{ hashFiles( 'test-harness/box.json' ) }}
166-
16746
- name: Setup CommandBox
168-
uses: elpete/setup-commandbox@v1.0.0
47+
uses: Ortus-Solutions/setup-commandbox@main
16948
with:
17049
forgeboxAPIKey: ${{ secrets.FORGEBOX_TOKEN }}
17150

.github/workflows/gh-release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Publish Github Release
2+
name: Github Release
3+
4+
on:
5+
push:
6+
tags:
7+
- v[0-9]+.*
8+
9+
jobs:
10+
create-release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: taiki-e/[email protected]
15+
with:
16+
# Produced by the build/Build.cfc
17+
changelog: changelog.md
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)