-
Notifications
You must be signed in to change notification settings - Fork 3
105 lines (83 loc) · 2.44 KB
/
Copy pathtests.yml
File metadata and controls
105 lines (83 loc) · 2.44 KB
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
name: Tests
on:
push:
pull_request:
permissions:
contents: read
jobs:
boxlang:
name: BoxLang bleeding edge / Java 21
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Java 21
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: "21"
- name: Set up CommandBox
uses: Ortus-Solutions/setup-commandbox@v2.0.1
with:
version: 6.3.1
- name: Install dependencies
run: box install
- name: Show runtime versions
run: |
java -version
box version
- name: Start BoxLang
run: box server start server-boxlang-be.json
- name: Run tests with BoxLang
run: >-
curl --fail-with-body --silent --show-error
"http://127.0.0.1:8600/tests/runner.cfm?reporter=json&directory=tests.specs"
- name: Verify test result
shell: bash
run: |
if ! grep -qx 'test.passed=true' tests/results/TEST.properties; then
echo '::error::TestBox reported failures or errors.'
exit 1
fi
- name: Stop BoxLang
if: always()
run: box server stop server-boxlang-be.json
lucee:
name: Lucee 5.4 / Java 11
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Java 11
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: "11"
- name: Set up CommandBox
uses: Ortus-Solutions/setup-commandbox@v2.0.1
with:
version: 6.3.1
- name: Install dependencies
run: box install
- name: Show runtime versions
run: |
java -version
box version
- name: Start Lucee
run: box server start server-lucee5.json
- name: Run tests with Lucee
run: >-
curl --fail-with-body --silent --show-error
"http://127.0.0.1:8599/tests/runner.cfm?reporter=json&directory=tests.specs"
- name: Verify test result
shell: bash
run: |
if ! grep -qx 'test.passed=true' tests/results/TEST.properties; then
echo '::error::TestBox reported failures or errors.'
exit 1
fi
- name: Stop Lucee
if: always()
run: box server stop server-lucee5.json