ci: fix find-apps.sh default printout
This commit is contained in:
parent
90ad3c70bf
commit
e4a4956c19
|
@ -1,17 +0,0 @@
|
||||||
name: Codeball
|
|
||||||
on: [pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
codeball_job:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: Codeball
|
|
||||||
steps:
|
|
||||||
# Run Codeball on all new Pull Requests 🚀
|
|
||||||
# For customizations and more documentation, see https://github.com/sturdy-dev/codeball-action
|
|
||||||
- name: Codeball
|
|
||||||
uses: sturdy-dev/codeball-action@v2
|
|
||||||
with:
|
|
||||||
approvePullRequests: "true"
|
|
||||||
labelPullRequestsWhenApproved: "true"
|
|
||||||
labelPullRequestsWhenReviewNeeded: "false"
|
|
||||||
failJobsWhenReviewNeeded: "false"
|
|
|
@ -39,7 +39,7 @@ jobs:
|
||||||
working-directory: source
|
working-directory: source
|
||||||
env:
|
env:
|
||||||
PROFILE: emqx
|
PROFILE: emqx
|
||||||
DIAGNOSTIC: 1
|
#DIAGNOSTIC: 1
|
||||||
run: |
|
run: |
|
||||||
make ensure-rebar3
|
make ensure-rebar3
|
||||||
# this will fetch all deps and compile
|
# this will fetch all deps and compile
|
||||||
|
@ -63,7 +63,7 @@ jobs:
|
||||||
working-directory: source
|
working-directory: source
|
||||||
env:
|
env:
|
||||||
PROFILE: emqx-enterprise
|
PROFILE: emqx-enterprise
|
||||||
DIAGNOSTIC: 1
|
#DIAGNOSTIC: 1
|
||||||
run: |
|
run: |
|
||||||
make ensure-rebar3
|
make ensure-rebar3
|
||||||
# this will fetch all deps and compile
|
# this will fetch all deps and compile
|
||||||
|
@ -221,7 +221,7 @@ jobs:
|
||||||
- uses: AutoModality/action-clean@v1
|
- uses: AutoModality/action-clean@v1
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: source
|
name: source-emqx-enterprise
|
||||||
path: .
|
path: .
|
||||||
- name: unzip source code
|
- name: unzip source code
|
||||||
run: unzip -q source.zip
|
run: unzip -q source.zip
|
||||||
|
@ -234,12 +234,15 @@ jobs:
|
||||||
|
|
||||||
- name: make cover
|
- name: make cover
|
||||||
working-directory: source
|
working-directory: source
|
||||||
|
env:
|
||||||
|
PROFILE: emqx-enterprise
|
||||||
run: make cover
|
run: make cover
|
||||||
|
|
||||||
- name: send to coveralls
|
- name: send to coveralls
|
||||||
working-directory: source
|
working-directory: source
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
PROFILE: emqx-enterprise
|
||||||
run: make coveralls
|
run: make coveralls
|
||||||
|
|
||||||
- name: get coveralls logs
|
- name: get coveralls logs
|
||||||
|
|
|
@ -11,7 +11,7 @@ help() {
|
||||||
echo "--ci fast|docker: Print apps in json format for github ci mtrix"
|
echo "--ci fast|docker: Print apps in json format for github ci mtrix"
|
||||||
}
|
}
|
||||||
|
|
||||||
CI='fast'
|
CI='novalue'
|
||||||
while [ "$#" -gt 0 ]; do
|
while [ "$#" -gt 0 ]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
-h|--help)
|
-h|--help)
|
||||||
|
@ -45,7 +45,7 @@ CE="$(find_app 'apps')"
|
||||||
EE="$(find_app 'lib-ee')"
|
EE="$(find_app 'lib-ee')"
|
||||||
APPS_ALL="$(echo -e "${CE}\n${EE}")"
|
APPS_ALL="$(echo -e "${CE}\n${EE}")"
|
||||||
|
|
||||||
if [ "$CI" = 'no' ]; then
|
if [ "$CI" = 'novalue' ]; then
|
||||||
echo "${APPS_ALL}"
|
echo "${APPS_ALL}"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
@ -77,7 +77,8 @@ dimensions() {
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
echo -n "$app $profile" | jq -R -s -c 'split(" ")'
|
## poor-man's json formatter
|
||||||
|
echo -n -e "[\"$app\", \"$profile\"]"
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix() {
|
matrix() {
|
||||||
|
|
Loading…
Reference in New Issue