Skip to content

Commit 6fc71eb

Browse files
committed
build update
1 parent 315ff9b commit 6fc71eb

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111
MODULE_ID: cbvalidation
1212

1313
jobs:
14-
#############################################
14+
#############################################
1515
# Tests First baby! We fail, no build :(
1616
#############################################
1717
tests:
@@ -20,7 +20,7 @@ jobs:
2020
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
2121

2222
#############################################
23-
# Build Module
23+
# Build
2424
#############################################
2525
build:
2626
name: Build & Publish
@@ -38,6 +38,15 @@ jobs:
3838
distribution: "adopt"
3939
java-version: "11"
4040

41+
- name: Cache CommandBox Dependencies
42+
uses: actions/cache@v1
43+
if: ${{ true }}
44+
with:
45+
path: ~/.CommandBox/artifacts
46+
key: ${{ runner.OS }}-commandbox-cache-${{ hashFiles( 'box.json' ) }}-${{ hashFiles( 'test-harness/box.json' ) }}
47+
restore-keys: |
48+
${{ runner.OS }}-commandbox-cache-${{ hashFiles( 'box.json' ) }}-${{ hashFiles( 'test-harness/box.json' ) }}
49+
4150
- name: Setup CommandBox
4251
uses: Ortus-Solutions/setup-commandbox@main
4352
with:
@@ -55,7 +64,6 @@ jobs:
5564
then
5665
echo "BRANCH=development" >> $GITHUB_ENV
5766
fi
58-
5967
- name: Build ${{ env.MODULE_ID }}
6068
run: |
6169
box install commandbox-docbox
@@ -97,7 +105,7 @@ jobs:
97105
cat box.json
98106
box forgebox publish
99107
100-
- name: Inform Slack
108+
- name: Inform Slack of Build
101109
if: ${{ always() }}
102110
uses: rtCamp/action-slack-notify@v2
103111
env:

0 commit comments

Comments
 (0)