forked from cfwheels/cfwheels
-
Notifications
You must be signed in to change notification settings - Fork 0
111 lines (102 loc) · 3.54 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# This is a reusable workflow that is called from the pr, snapshot, and release workflows
# This workflow runs the complete Wheels Framework Test Suites
name: Wheels Test Suites
# We are a reusable Workflow only
on:
workflow_call:
secrets:
SLACK_WEBHOOK_URL:
required: true
jobs:
tests:
name: Test Suites
runs-on: ubuntu-22.04
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
commandbox_version: [ "6.0.0" ]
jdkVersion: [ "21" ]
experimental: [false]
cfengine: [ "lucee@5", "lucee@6", "adobe@2018", "adobe@2021", "adobe@2023" ]
dbengine: ["mysql", "postgres", "sqlserver", "h2"]
exclude:
- cfengine: lucee@5
dbengine: mysql
- cfengine: lucee@5
dbengine: postgres
- cfengine: lucee@5
dbengine: sqlserver
- cfengine: lucee@5
dbengine: h2
- cfengine: lucee@6
dbengine: mysql
- cfengine: lucee@6
dbengine: postgres
- cfengine: lucee@6
dbengine: sqlserver
# - cfengine: lucee@6
# dbengine: h2
- cfengine: adobe@2018
dbengine: mysql
- cfengine: adobe@2018
dbengine: postgres
- cfengine: adobe@2018
dbengine: sqlserver
- cfengine: adobe@2018
dbengine: h2
- cfengine: adobe@2021
dbengine: mysql
- cfengine: adobe@2021
dbengine: postgres
- cfengine: adobe@2021
dbengine: sqlserver
- cfengine: adobe@2021
dbengine: h2
- cfengine: adobe@2023
dbengine: mysql
- cfengine: adobe@2023
dbengine: postgres
- cfengine: adobe@2023
dbengine: sqlserver
- cfengine: adobe@2023
dbengine: h2
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Copy server.json files
run: |
cp ./docker/${{ matrix.cfengine }}/server.json ./
cp ./docker/${{ matrix.cfengine }}/CFConfig.json ./
cp ./docker/${{ matrix.cfengine }}/settings.cfm ./app/config/settings.cfm
- name: Start external DB if needed (${{ matrix.dbengine }}) ...
if: ${{ matrix.dbengine != 'h2' }}
run: docker-compose up -d ${{ matrix.dbengine }}
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: ${{ matrix.jdkVersion }}
- name: Setup CommandBox CLI
uses: Ortus-Solutions/setup-commandbox@v2.0.1
with:
version: ${{ matrix.commandbox_version }}
- name: Install Dependencies
run: |
# Core dependencies
box install
- name: Start ${{ matrix.cfengine }} Server
run: |
box server start serverConfigFile="server.json" --noSaveSettings --debug
- name: Running onServerInstall Script for Adobe2021 and Adobe2023
if: ${{ matrix.cfengine == 'adobe@2021' }} || ${{ matrix.cfengine == 'adobe@2023' }}
run: box run-script onServerInstall
- name: Run Tests ${{ matrix.cfengine }} ${{ matrix.dbengine }}
run: |
docker/github/core-tests.sh ${{ matrix.cfengine }} ${{ matrix.dbengine }}
- name: Failure Debugging Info
if: ${{ failure() }}
run: |
box version
box server info serverConfigFile="server.json" --json
box server log serverConfigFile="server.json"