-
Notifications
You must be signed in to change notification settings - Fork 31
60 lines (47 loc) · 1.48 KB
/
pr.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
name: PRs and Branches
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
name: Tests
strategy:
fail-fast: true
matrix:
cfengine: ["lucee@5", "adobe@2016", "adobe@2018"]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
path: stripecfml # checkout as stripecfml because that is how the module installs
- name: Setup Java JDK
uses: actions/[email protected]
with:
java-version: 11
- name: Set Up CommandBox
uses: elpete/[email protected]
- name: Install dependencies
run: cd stripecfml && box install
- name: Start server
run: cd stripecfml && box server start cfengine=${{ matrix.cfengine }} --noSaveSettings
- name: Run TestBox Tests
run: cd stripecfml && 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