Skip to content

Commit

Permalink
Refactor GH tests action
Browse files Browse the repository at this point in the history
  • Loading branch information
cfsimplicity committed May 23, 2024
1 parent 1e60325 commit b1dde23
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,35 @@ on:
[ workflow_dispatch, workflow_call ]

jobs:
testbox:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
cfengine: [ "lucee@5", "adobe@2018", "adobe@2021", "adobe@2023" ]
container:
image: foundeo/cfml-ci-tools:latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'

- name: Install the ortus security key
run: curl -fsSl https://downloads.ortussolutions.com/debs/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/ortussolutions.gpg > /dev/null

- name: Add the commandbox source
run: echo "deb [signed-by=/usr/share/keyrings/ortussolutions.gpg] https://downloads.ortussolutions.com/debs/noarch /" | sudo tee /etc/apt/sources.list.d/commandbox.list

- name: Update apt and install commandbox
run: sudo apt-get update && sudo apt-get install apt-transport-https commandbox

- name: Install dependencies
run: box install

- name: Start a server
run: box server start cfengine=${{ matrix.cfengine }} port=8080

- name: Run TestBox Tests
run: box testbox run "http://localhost:8080/test/index.cfm"
run: box testbox run
5 changes: 5 additions & 0 deletions box.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
"installPaths":{
"testbox":"test/testbox/"
},
testbox:{
runner:[
{ "default": "http://localhost:8080/test/index.cfm" }
]
},
"type" : "modules",
"keywords" : [ "cfspreadsheet", "coldfusion", "lucee", "module", "spreadsheet", "csv" ],
"private" : "false",
Expand Down

0 comments on commit b1dde23

Please sign in to comment.