-
Notifications
You must be signed in to change notification settings - Fork 401
/
action.yml
37 lines (34 loc) 路 1.89 KB
/
action.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
# For more information see:
# - https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
# - https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#outputsoutput_id
# The action can be referenced in workflows like:
# - ngxs/store/.github/actions/check-build-artifacts@master
# - ./.github/actions/check-build-artifacts
name: check-build-artifacts
description: Ensure the build artifact directories exist
runs:
using: 'composite'
steps:
- name: Check @ngxs build artifacts
shell: bash
run: |
echo "Making sure the build artifact directories exist."
[[ -d $DEVTOOLS_PLUG_ART ]] && echo "$DEVTOOLS_PLUG_ART $OK" || echo "$DEVTOOLS_PLUG_ART $FAILURE" exit 1
[[ -d $FORM_PLUG_ART ]] && echo "$FORM_PLUG_ART $OK" || echo "$DEVTOOLS_PLUG_ART $FAILURE" exit 1
[[ -d $HMR_PLUG_ART ]] && echo "$HMR_PLUG_ART $OK" || echo "$HMR_PLUG_ART $FAILURE" exit 1
[[ -d $LOGGER_PLUG_ART ]] && echo "$LOGGER_PLUG_ART $OK" || echo "$LOGGER_PLUG_ART $FAILURE" exit 1
[[ -d $ROUTER_PLUG_ART ]] && echo "$ROUTER_PLUG_ART $OK" || echo "$ROUTER_PLUG_ART $FAILURE" exit 1
[[ -d $STORAGE_PLUG_ART ]] && echo "$STORAGE_PLUG_ART $OK" || echo "$STORAGE_PLUG_ART $FAILURE" exit 1
[[ -d $STORE_ART ]] && echo "$STORE_ART $OK" || echo "$STORE_ART $FAILURE" exit 1
[[ -d $WEBSOCKET_PLUG_ART ]] && echo "$WEBSOCKET_PLUG_ART $OK" || echo "$WEBSOCKET_PLUG_ART $FAILURE" exit 1
env:
OK: 'exists'
FAILURE: 'does not exist'
DEVTOOLS_PLUG_ART: './@ngxs/devtools-plugin'
FORM_PLUG_ART: './@ngxs/form-plugin'
HMR_PLUG_ART: './@ngxs/hmr-plugin'
LOGGER_PLUG_ART: './@ngxs/logger-plugin'
ROUTER_PLUG_ART: './@ngxs/router-plugin'
STORAGE_PLUG_ART: './@ngxs/storage-plugin'
STORE_ART: './@ngxs/store'
WEBSOCKET_PLUG_ART: './@ngxs/websocket-plugin'