-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 changed file
with
0 additions
and
59 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 |
---|---|---|
|
@@ -16,65 +16,6 @@ jobs: | |
secrets: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
|
||
name: Tests | ||
runs-on: ubuntu-20.04 | ||
env: | ||
ELASTICSEARCH_PROTOCOL: http | ||
ELASTICSEARCH_HOST: 127.0.0.1 | ||
ELASTICSEARCH_PORT: 9200 | ||
LOGSTASH_API_URL: http://localhost:60299/logstash/api/logs | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
cfengine: ["lucee@5", "adobe@2018", "adobe@2021" ] | ||
ELASTICSEARCH_VERSION: [ "7.17.2", "8.6.0" ] | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: "temurin" | ||
java-version: "11" | ||
|
||
- name: Setup CommandBox | ||
uses: elpete/[email protected] | ||
|
||
|
||
- name: Setup Elasticsearch | ||
run: | | ||
docker run -d -p "${{ env.ELASTICSEARCH_PORT }}:9200" -e 'discovery.type=single-node' -e 'xpack.security.enabled=false' elasticsearch:${{ matrix.ELASTICSEARCH_VERSION }} | ||
- name: Install Dependencies | ||
run: | | ||
box install commandbox-cfconfig,commandbox-dotenv,commandbox-docbox | ||
box run-script harness:install | ||
- name: Start ${{ matrix.cfengine }} Server | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/test-harness | ||
box server start serverConfigFile="server-${{ matrix.cfengine }}.json" --debug | ||
sleep 60 | ||
curl http://127.0.0.1:60299 | ||
- name: Run Web App Tests | ||
run: | | ||
cd ${GITHUB_WORKSPACE} | ||
mkdir -p ${GITHUB_WORKSPACE}/test-harness/tests/results/web | ||
box package set testbox.runner="http://127.0.0.1:60299/tests/runner.cfm?seed=true" | ||
box testbox run --verbose outputFile=test-harness/tests/results/web/test-results outputFormats=json,antjunit | ||
- name: Publish Test Reports | ||
uses: mikepenz/action-junit-report@v2 | ||
with: | ||
report_paths: 'test-harness/tests/results/*.xml' | ||
check_name: "${{ matrix.cfengine }}/${{ matrix.javaVersion }} Test Results" | ||
summary: true | ||
|
||
- name: Failure debugging | ||
if: ${{ failure() }} | ||
run: cd ${GITHUB_WORKSPACE}/test-harness && box server log serverConfigFile="server-${{ matrix.cfengine }}.json" | ||
############################################# | ||
# Build Logstash | ||
############################################# | ||
|