add support for concurrent runs, better agent support, running a locally built jar #215
This file contains hidden or 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
| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build-ubuntu: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache Maven packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2 | |
| key: lucee-script-runner-maven-cache | |
| - name: Cache Lucee files | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/work/script-runner/script-runner/lucee-download-cache/ | |
| key: lucee-downloads | |
| - name: Run default | |
| run: ant | |
| - name: Run Latest Lucee 6 (via version query) | |
| run: ant -DluceeVersionQuery="6/all/jar" -Dexecute="/debug.cfm" | |
| - name: Run Lucee 6 Stable | |
| run: ant -DluceeVersion="6.2.2.91" -Dexecute="/debug.cfm" -Dtruth="cfml rocks" -Dauthor="Zac Spitzer" | |
| - name: Run Lucee 5 (using Lucee light, no extensions) | |
| run: ant -DluceeVersion="light-5.4.2.17" -Dexecute="/debug.cfm" | |
| - name: Run Lucee 6 (using Lucee zero, no extensions, no admin, no docs) | |
| run: ant -DluceeVersion="zero-6.2.2.91" -Dexecute="/debug.cfm" | |
| - name: Run Latest Lucee 5 RC Light | |
| run: ant -DluceeVersionQuery="5/rc/light" -Dexecute="/debug.cfm" | |
| - name: Run Latest Stable Lucee 5, compile webroot | |
| run: ant -DluceeVersionQuery="5/stable/jar" -Dexecute="/index.cfm" -Dcompile="true" | |
| - name: Run Latest Stable Lucee 5, compile webroot (invalid code) | |
| continue-on-error: true | |
| run: ant -DluceeVersionQuery="5/stable/jar" -Dexecute="/index.cfm" -Dcompile="true" -Dwebroot="${{ github.workspace }}/sampleBad/" | |
| - name: Test concurrent execution with unique working directories | |
| run: | | |
| ant -DuniqueWorkingDir="true" -Dexecute="/debug.cfm" & | |
| ant -DuniqueWorkingDir="true" -Dexecute="/debug.cfm" & | |
| wait |