File tree 2 files changed +7
-12
lines changed
2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,10 @@ jobs:
37
37
shell : bash
38
38
run : |
39
39
yarn prettier -v
40
- shopt -s extglob
41
- if ls assets/**/*.@(scss|js|es6) &> /dev/null; then
40
+ if [ 0 -lt $(find assets -type f \( -name "*.scss" -or -name "*.js" -or -name "*.es6" \) 2> /dev/null | wc -l) ]; then
42
41
yarn prettier --list-different "assets/**/*.{scss,js,es6}"
43
42
fi
44
- if ls test/**/*.@(js| es6) & > /dev/null; then
43
+ if [ 0 -lt $(find test -type f \( -name "*.js" -or -name "*. es6" \) 2 > /dev/null | wc -l) ] ; then
45
44
yarn prettier --list-different "test/**/*.{js,es6}"
46
45
fi
47
46
Original file line number Diff line number Diff line change 29
29
build_type : ["backend", "frontend"]
30
30
ruby : ["2.7"]
31
31
postgres : ["13"]
32
- redis : ["4.x"]
33
32
34
33
services :
35
34
postgres :
63
62
git config --global user.email "ci@ci.invalid"
64
63
git config --global user.name "Discourse CI"
65
64
66
- - name : Setup redis
67
- uses : shogo82148/actions-setup-redis@v1
68
- with :
69
- redis-version : ${{ matrix.redis }}
65
+ - name : Start redis
66
+ run : |
67
+ redis-server /etc/redis/redis.conf &
70
68
71
69
- name : Bundler cache
72
70
uses : actions/cache@v2
@@ -113,8 +111,7 @@ jobs:
113
111
id : check_spec
114
112
shell : bash
115
113
run : |
116
- shopt -s extglob
117
- if ls plugins/${{ github.event.repository.name }}/spec/**/*.@(rb) &> /dev/null; then
114
+ if [ 0 -lt $(find plugins/${{ github.event.repository.name }}/spec -type f -name "*.rb" 2> /dev/null | wc -l) ]; then
118
115
echo "::set-output name=files_exist::true"
119
116
fi
120
117
@@ -126,8 +123,7 @@ jobs:
126
123
id : check_qunit
127
124
shell : bash
128
125
run : |
129
- shopt -s extglob
130
- if ls plugins/${{ github.event.repository.name }}/test/javascripts/**/*.@(js|es6) &> /dev/null; then
126
+ if [ 0 -lt $(find plugins/${{ github.event.repository.name }}/test/javascripts -type f \( -name "*.js" -or -name "*.es6" \) 2> /dev/null | wc -l) ]; then
131
127
echo "::set-output name=files_exist::true"
132
128
fi
133
129
You can’t perform that action at this time.
0 commit comments