-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
330 additions
and
253 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
{ | ||
"adminPassword" : "coldbox", | ||
"debuggingEnabled":true, | ||
"debuggingReportExecutionTimes":false, | ||
"disableInternalCFJavaComponents":false, | ||
"inspectTemplate":"always", | ||
"requestTimeout":"0,0,0,90", | ||
"robustExceptionEnabled":true | ||
} | ||
} |
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,7 @@ | ||
DB_HOST=127.0.0.1 | ||
DB_PORT=3306 | ||
DB_USER=root | ||
DB_PASSWORD=mysql | ||
DB_CLASS=com.mysql.cj.jdbc.Driver | ||
DB_BUNDLEVERSION=8.0.19 | ||
DB_BUNDLENAME=com.mysql.cj |
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 @@ | ||
patreon: ortussolutions |
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 |
---|---|---|
|
@@ -15,100 +15,12 @@ jobs: | |
# Tests First baby! We fail, no build :( | ||
############################################# | ||
tests: | ||
name: Tests | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
cfengine: [ "lucee@5", "adobe@2016", "adobe@2018", "adobe@2021" ] | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: "adopt" | ||
java-version: "11" | ||
|
||
- name: Cache CommandBox Dependencies | ||
uses: actions/cache@v1 | ||
if: ${{ true }} | ||
with: | ||
path: ~/.CommandBox/artifacts | ||
key: ${{ runner.OS }}-commandbox-cache-${{ hashFiles( 'box.json' ) }}-${{ hashFiles( 'test-harness/box.json' ) }} | ||
restore-keys: | | ||
${{ runner.OS }}-commandbox-cache-${{ hashFiles( 'box.json' ) }}-${{ hashFiles( 'test-harness/box.json' ) }} | ||
- name: Setup CommandBox | ||
uses: elpete/[email protected] | ||
|
||
- name: Install Test Harness Dependencies | ||
working-directory: ./test-harness | ||
run: | | ||
box install | ||
- name: Start ${{ matrix.cfengine }} Server | ||
working-directory: ./test-harness | ||
run: | | ||
box server start serverConfigFile="server-${{ matrix.cfengine }}.json" --noSaveSettings --debug | ||
# Install Adobe 2021 cfpm modules | ||
if [[ "${{ matrix.cfengine }}" == "adobe@2021" ]] ; then | ||
box run-script install:2021 | ||
fi | ||
curl http://127.0.0.1:60299 | ||
- name: Run Tests | ||
working-directory: ./test-harness | ||
run: | | ||
mkdir tests/results | ||
box package set testbox.runner="http://localhost:60299/tests/runner.cfm" | ||
box testbox run --verbose outputFile=tests/results/test-results outputFormats=json,antjunit | ||
- name: Publish Test Results | ||
uses: EnricoMi/publish-unit-test-result-action@v1 | ||
if: always() | ||
with: | ||
files: test-harness/tests/results/**/*.xml | ||
check_name: "${{ matrix.cfengine }} Test Results" | ||
|
||
- name: Upload Test Results Artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: test-results-${{ matrix.cfengine }} | ||
path: | | ||
test-harness/tests/results/**/* | ||
- name: Slack Notification | ||
if: failure() | ||
uses: rtCamp/action-slack-notify@v2 | ||
env: | ||
SLACK_CHANNEL: coding | ||
SLACK_COLOR: ${{ job.status }} # or a specific color like 'green' or '#ff00ff' | ||
SLACK_ICON_EMOJI: ":bell:" | ||
SLACK_MESSAGE: '${{ env.MODULE_ID }} tests failed :cry:' | ||
SLACK_TITLE: ${{ env.MODULE_ID }} Tests For ${{ matrix.cfengine }} failed | ||
SLACK_USERNAME: CI | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
|
||
- name: Failure Debugging Info | ||
if: ${{ failure() }} | ||
working-directory: ./test-harness | ||
run: | | ||
box server log serverConfigFile="server-${{ matrix.cfengine }}.json" | ||
- name: Upload Debugging Info To Artifacts | ||
if: ${{ failure() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Failure Debugging Info - ${{ matrix.cfengine }} | ||
path: | | ||
test-harness/.engine/**/logs/* | ||
test-harness/.engine/**/WEB-INF/cfusion/logs/* | ||
uses: ./.github/workflows/tests.yml | ||
secrets: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
|
||
############################################# | ||
# Build Module | ||
# Build ContentBox | ||
############################################# | ||
build: | ||
name: Build & Publish | ||
|
@@ -136,7 +48,7 @@ jobs: | |
${{ runner.OS }}-commandbox-cache-${{ hashFiles( 'box.json' ) }}-${{ hashFiles( 'test-harness/box.json' ) }} | ||
- name: Setup CommandBox | ||
uses: elpete/setup-commandbox@v1.0.0 | ||
uses: Ortus-Solutions/setup-commandbox@v2.0.0 | ||
with: | ||
forgeboxAPIKey: ${{ secrets.FORGEBOX_TOKEN }} | ||
|
||
|
@@ -152,7 +64,6 @@ jobs: | |
then | ||
echo "BRANCH=development" >> $GITHUB_ENV | ||
fi | ||
- name: Build ${{ env.MODULE_ID }} | ||
run: | | ||
box install commandbox-docbox | ||
|
@@ -194,7 +105,7 @@ jobs: | |
cat box.json | ||
box forgebox publish | ||
- name: Inform Slack | ||
- name: Inform Slack of Build | ||
if: ${{ always() }} | ||
uses: rtCamp/action-slack-notify@v2 | ||
env: | ||
|
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,19 @@ | ||
# Publish Github Release | ||
name: Github Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- v[0-9]+.* | ||
|
||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: taiki-e/[email protected] | ||
with: | ||
# Produced by the build/Build.cfc | ||
changelog: changelog.md | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -11,96 +11,23 @@ on: | |
- development | ||
|
||
jobs: | ||
# UPDATE TO THE MODULE REPO SO PR'S CAN REUSE IT | ||
tests: | ||
name: Tests | ||
runs-on: ubuntu-20.04 | ||
env: | ||
DB_USER: root | ||
DB_PASSWORD: root | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
cfengine: [ "lucee@5", "adobe@2016", "adobe@2018", "adobe@2021" ] | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: "adopt" | ||
java-version: "11" | ||
|
||
- name: Cache CommandBox Dependencies | ||
uses: actions/cache@v1 | ||
if: ${{ true }} | ||
with: | ||
path: ~/.CommandBox/artifacts | ||
key: ${{ runner.OS }}-commandbox-cache-${{ hashFiles( 'box.json' ) }}-${{ hashFiles( 'test-harness/box.json' ) }} | ||
restore-keys: | | ||
${{ runner.OS }}-commandbox-cache-${{ hashFiles( 'box.json' ) }}-${{ hashFiles( 'test-harness/box.json' ) }} | ||
- name: Setup CommandBox | ||
uses: elpete/[email protected] | ||
|
||
- name: Install Test Harness Dependencies | ||
working-directory: ./test-harness | ||
run: | | ||
box install | ||
- name: Start ${{ matrix.cfengine }} Server | ||
working-directory: ./test-harness | ||
run: | | ||
box server start serverConfigFile="server-${{ matrix.cfengine }}.json" --noSaveSettings --debug | ||
# Install Adobe 2021 cfpm modules | ||
if [[ "${{ matrix.cfengine }}" == "adobe@2021" ]] ; then | ||
box run-script install:2021 | ||
fi | ||
curl http://127.0.0.1:60299 | ||
- name: Run Tests | ||
working-directory: ./test-harness | ||
run: | | ||
mkdir tests/results | ||
box package set testbox.runner="http://localhost:60299/tests/runner.cfm" | ||
box testbox run --verbose outputFile=tests/results/test-results outputFormats=json,antjunit | ||
- name: Publish PR Test Reports | ||
uses: mikepenz/action-junit-report@v2 | ||
with: | ||
report_paths: 'test-harness/tests/results/**/*.xml' | ||
check_name: "${{ matrix.cfengine }} Test Results" | ||
summary: true | ||
|
||
- name: Failure Debugging Info | ||
if: ${{ failure() }} | ||
working-directory: ./test-harness | ||
run: | | ||
box server log serverConfigFile="server-${{ matrix.cfengine }}.json" | ||
uses: coldbox-modules/cbi18n/.github/workflows/tests.yml@development | ||
|
||
# Format PR | ||
format: | ||
name: Format | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v2 | ||
- uses: Ortus-Solutions/[email protected] | ||
with: | ||
distribution: "adopt" | ||
java-version: "11" | ||
|
||
- name: Set Up CommandBox | ||
uses: elpete/[email protected] | ||
|
||
- name: Install CFFormat | ||
run: box install commandbox-cfformat | ||
|
||
- name: Run CFFormat | ||
run: box run-script format:check | ||
cmd: run-script format | ||
|
||
- name: Commit Format Changes | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Apply cfformat changes | ||
commit_message: Apply cfformat changes |
Oops, something went wrong.