-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (23 loc) · 840 Bytes
/
test.yml
File metadata and controls
31 lines (23 loc) · 840 Bytes
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
name: Test
on: [ push, pull_request ]
defaults:
run:
shell: sh
jobs:
commands:
name : Run command tests
runs-on: ubuntu-latest
container: ghcr.io/foundeo/cfml-ci-tools/cfml-ci-tools:1.0.6
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install system module
run: ln -s $PWD /root/.CommandBox/cfml/modules
- name: Run cbwire create
run: box cbwire create name=User
- name: Confirm component exists
run: test -f $PWD/wires/User.cfc && echo "component exists" || exit 1
- name: Confirm view exists
run: test -f $PWD/views/wires/user.cfm && echo "wire exists" || exit 1
- name: Confirm test spec exists
run: test -f $PWD/tests/specs/integration/wires/UserTest.cfc && echo "test exists" || exit 1