Skip to content

Commit ae556e8

Browse files
authored
Merge pull request #34 from kenricashe/fix-acf2025-action
ci: move adobe@2025 testing to separate workflow job due to Java 17+ requirement
2 parents a2dc3e1 + 18f48cf commit ae556e8

1 file changed

Lines changed: 146 additions & 14 deletions

File tree

.github/workflows/main.yml

Lines changed: 146 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,162 @@ on:
77
branches: [ main, master, develop ]
88

99
jobs:
10-
test:
11-
name: Test on ${{ matrix.cfml_engine }}
10+
test-lucee6:
11+
name: Test on lucee@6
1212
runs-on: ubuntu-latest
1313

14-
strategy:
15-
matrix:
16-
cfml_engine:
17-
- lucee@6
18-
- adobe@2018
19-
- adobe@2021
20-
- adobe@2023
21-
- adobe@2025
22-
fail-fast: false
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Java 21
19+
uses: actions/setup-java@v4
20+
with:
21+
distribution: 'temurin'
22+
java-version: 21
23+
24+
- name: Set timezone
25+
run: |
26+
echo 'America/Vancouver' | sudo tee /etc/timezone
27+
sudo dpkg-reconfigure --frontend noninteractive tzdata
28+
29+
- name: Setup CommandBox
30+
run: |
31+
curl -fsSl https://downloads.ortussolutions.com/debs/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/ortussolutions.gpg > /dev/null
32+
echo "deb [signed-by=/usr/share/keyrings/ortussolutions.gpg] https://downloads.ortussolutions.com/debs/noarch /" | sudo tee /etc/apt/sources.list.d/commandbox.list
33+
sudo apt-get update && sudo apt-get install commandbox
34+
35+
- name: Install dependencies and run tests
36+
run: |
37+
box install
38+
box server start cfengine=lucee@6 port=8080
39+
box testbox run directory=tests.testbox
40+
box server stop
41+
42+
test-adobe2018:
43+
name: Test on adobe@2018
44+
runs-on: ubuntu-latest
2345

2446
steps:
2547
- name: Checkout code
2648
uses: actions/checkout@v4
2749

50+
- name: Setup Java 11
51+
uses: actions/setup-java@v4
52+
with:
53+
distribution: 'temurin'
54+
java-version: 11
55+
2856
- name: Set timezone
2957
run: |
3058
echo 'America/Vancouver' | sudo tee /etc/timezone
3159
sudo dpkg-reconfigure --frontend noninteractive tzdata
3260
33-
- name: Run TestBox tests
34-
uses: coldfumonkeh/cfml-testbox-action@v1
61+
- name: Setup CommandBox
62+
run: |
63+
curl -fsSl https://downloads.ortussolutions.com/debs/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/ortussolutions.gpg > /dev/null
64+
echo "deb [signed-by=/usr/share/keyrings/ortussolutions.gpg] https://downloads.ortussolutions.com/debs/noarch /" | sudo tee /etc/apt/sources.list.d/commandbox.list
65+
sudo apt-get update && sudo apt-get install commandbox
66+
67+
- name: Install dependencies and run tests
68+
run: |
69+
box install
70+
box server start cfengine=adobe@2018 port=8080
71+
box testbox run directory=tests.testbox
72+
box server stop
73+
74+
test-adobe2021:
75+
name: Test on adobe@2021
76+
runs-on: ubuntu-latest
77+
78+
steps:
79+
- name: Checkout code
80+
uses: actions/checkout@v4
81+
82+
- name: Setup Java 11
83+
uses: actions/setup-java@v4
3584
with:
36-
cfml-engine: ${{ matrix.cfml_engine }}
85+
distribution: 'temurin'
86+
java-version: 11
87+
88+
- name: Set timezone
89+
run: |
90+
echo 'America/Vancouver' | sudo tee /etc/timezone
91+
sudo dpkg-reconfigure --frontend noninteractive tzdata
92+
93+
- name: Setup CommandBox
94+
run: |
95+
curl -fsSl https://downloads.ortussolutions.com/debs/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/ortussolutions.gpg > /dev/null
96+
echo "deb [signed-by=/usr/share/keyrings/ortussolutions.gpg] https://downloads.ortussolutions.com/debs/noarch /" | sudo tee /etc/apt/sources.list.d/commandbox.list
97+
sudo apt-get update && sudo apt-get install commandbox
98+
99+
- name: Install dependencies and run tests
100+
run: |
101+
box install
102+
box server start cfengine=adobe@2021 port=8080
103+
box testbox run directory=tests.testbox
104+
box server stop
105+
106+
test-adobe2023:
107+
name: Test on adobe@2023
108+
runs-on: ubuntu-latest
109+
110+
steps:
111+
- name: Checkout code
112+
uses: actions/checkout@v4
113+
114+
- name: Setup Java 17
115+
uses: actions/setup-java@v4
116+
with:
117+
distribution: 'temurin'
118+
java-version: 17
119+
120+
- name: Set timezone
121+
run: |
122+
echo 'America/Vancouver' | sudo tee /etc/timezone
123+
sudo dpkg-reconfigure --frontend noninteractive tzdata
124+
125+
- name: Setup CommandBox
126+
run: |
127+
curl -fsSl https://downloads.ortussolutions.com/debs/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/ortussolutions.gpg > /dev/null
128+
echo "deb [signed-by=/usr/share/keyrings/ortussolutions.gpg] https://downloads.ortussolutions.com/debs/noarch /" | sudo tee /etc/apt/sources.list.d/commandbox.list
129+
sudo apt-get update && sudo apt-get install commandbox
130+
131+
- name: Install dependencies and run tests
132+
run: |
133+
box install
134+
box server start cfengine=adobe@2023 port=8080
135+
box testbox run directory=tests.testbox
136+
box server stop
137+
138+
test-adobe2025:
139+
name: Test on adobe@2025
140+
runs-on: ubuntu-latest
141+
142+
steps:
143+
- name: Checkout code
144+
uses: actions/checkout@v4
145+
146+
- name: Setup Java 21
147+
uses: actions/setup-java@v4
148+
with:
149+
distribution: 'temurin'
150+
java-version: 21
151+
152+
- name: Set timezone
153+
run: |
154+
echo 'America/Vancouver' | sudo tee /etc/timezone
155+
sudo dpkg-reconfigure --frontend noninteractive tzdata
156+
157+
- name: Setup CommandBox
158+
run: |
159+
curl -fsSl https://downloads.ortussolutions.com/debs/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/ortussolutions.gpg > /dev/null
160+
echo "deb [signed-by=/usr/share/keyrings/ortussolutions.gpg] https://downloads.ortussolutions.com/debs/noarch /" | sudo tee /etc/apt/sources.list.d/commandbox.list
161+
sudo apt-get update && sudo apt-get install commandbox
162+
163+
- name: Install dependencies and run tests
164+
run: |
165+
box install
166+
box server start cfengine=adobe@2025 port=8080
167+
box testbox run directory=tests.testbox
168+
box server stop

0 commit comments

Comments
 (0)