Change order of operations, add new #13
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
name: fw1 BoxLang | |
on: | |
push: | |
branches: [ "develop" ] | |
pull_request: | |
branches: [ "develop" ] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
engine: [ boxlang, boxlang@be ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '21' | |
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 boxlang | |
run: box install commandbox-boxlang | |
- name: Start the ${{ matrix.engine }} CFML engine | |
run: box server start cfengine=${{ matrix.engine }} port=8500 openbrowser=false javaVersion=openjdk21_jdk | |
- name: Install bx-compat | |
run: box install bx-compat | |
- name: Stop boxlang after bx-compat install | |
run: box server stop | |
- name: Restart boxlang after bx-compat install | |
run: box server start cfengine=${{ matrix.engine }} port=8500 openbrowser=false javaVersion=openjdk21_jdk | |
- name: Install dependencies | |
run: box install | |
- name: Run test | |
run: | | |
testResults="echo $(box testbox run reporter=mintext)"; | |
echo "$testResults"; | |
if grep -i "\[Failures: [1-9][0-9]\?[0-9]\?\]\|\[Errors: [1-9][0-9]\?[0-9]\?\]\|<t[^>]*>\|<b[^>]*>" <<< $testResults; then exit 1; fi |