Skip to content

Commit

Permalink
syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jclausen committed Apr 29, 2023
1 parent 28e1946 commit 4d9dfd6
Showing 1 changed file with 0 additions and 59 deletions.
59 changes: 0 additions & 59 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
#############################################
Expand Down

0 comments on commit 4d9dfd6

Please sign in to comment.