Update Splits to use regex to match other parts of quick codebase #184
Workflow file for this run
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: PRs and Branches | |
on: | |
push: | |
branches-ignore: | |
- "main" | |
- "master" | |
- "development" | |
pull_request: | |
branches: | |
- main | |
- master | |
- development | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
name: Tests | |
strategy: | |
fail-fast: false | |
matrix: | |
cfengine: ["lucee@5", "adobe@2018", "adobe@2021", "adobe@2023"] | |
coldbox: ["coldbox@6", "coldbox@7", "coldbox@be"] | |
services: | |
mysql: | |
image: mysql:5.7 | |
env: | |
MYSQL_RANDOM_ROOT_PASSWORD: yes | |
MYSQL_USER: quick | |
MYSQL_PASSWORD: quick | |
MYSQL_DATABASE: quick | |
ports: | |
- 3306 | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Setup Java JDK | |
uses: actions/[email protected] | |
with: | |
java-version: 11 | |
- name: Set Up CommandBox | |
uses: elpete/[email protected] | |
- name: Install dependencies | |
run: | | |
box install | |
box config set modules.commandbox-dotenv.checkEnvPreServerStart=false | |
box install ${{ matrix.coldbox }} --noSave | |
- name: Start server | |
env: | |
DB_HOST: localhost | |
DB_PORT: ${{ job.services.mysql.ports[3306] }} | |
DB_NAME: quick | |
DB_USER: quick | |
DB_PASSWORD: quick | |
run: | | |
box server start cfengine=${{ matrix.cfengine }} | |
# Install Adobe 2021 cfpm modules | |
if [[ "${{ matrix.cfengine }}" == "adobe@2021" ]] ; then | |
box run-script install:2021 | |
fi | |
- name: Run TestBox Tests | |
env: | |
DB_HOST: localhost | |
DB_PORT: ${{ job.services.mysql.ports[3306] }} | |
DB_NAME: quick | |
DB_USER: quick | |
DB_PASSWORD: quick | |
run: box testbox run | |
format: | |
runs-on: ubuntu-latest | |
name: Format | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Setup Java JDK | |
uses: actions/[email protected] | |
with: | |
java-version: 11 | |
- name: Set Up CommandBox | |
uses: elpete/[email protected] | |
- name: Install CFFormat | |
run: box install commandbox-cfformat | |
- name: Run CFFormat | |
run: box run-script format | |
- name: Commit Format Changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Apply cfformat changes |