[CI] update workflows, scripts, bundle
This commit is contained in:
parent
96873b33d7
commit
5acad5960e
|
@ -17,7 +17,7 @@ on:
|
|||
- main
|
||||
|
||||
env:
|
||||
DEVELOPER_DIR: /Applications/Xcode_14.1.app/Contents/Developer
|
||||
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
|
||||
|
||||
jobs:
|
||||
main:
|
||||
|
|
|
@ -8,7 +8,7 @@ on:
|
|||
types: [synchronize, opened, reopened, labeled, unlabeled, edited]
|
||||
|
||||
env:
|
||||
DEVELOPER_DIR: /Applications/Xcode_14.1.app/Contents/Developer
|
||||
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
|
||||
|
||||
jobs:
|
||||
main:
|
||||
|
@ -28,7 +28,6 @@ jobs:
|
|||
- name: ruby setup
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: 2.7
|
||||
bundler-cache: true
|
||||
|
||||
- name: danger
|
||||
|
|
|
@ -12,7 +12,7 @@ on:
|
|||
- main
|
||||
|
||||
env:
|
||||
DEVELOPER_DIR: /Applications/Xcode_14.1.app/Contents/Developer
|
||||
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
|
||||
|
||||
jobs:
|
||||
main:
|
||||
|
@ -32,7 +32,6 @@ jobs:
|
|||
- name: ruby setup
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: 2.7
|
||||
bundler-cache: true
|
||||
|
||||
- name: pod lint
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
3.2
|
|
@ -149,4 +149,4 @@ DEPENDENCIES
|
|||
danger-swiftlint
|
||||
|
||||
BUNDLED WITH
|
||||
2.3.9
|
||||
2.4.10
|
||||
|
|
|
@ -36,7 +36,7 @@ if which swiftlint >/dev/null; then
|
|||
if [[ "$argval" == "fix" ]]; then
|
||||
echo "Auto-correcting lint errors..."
|
||||
echo ""
|
||||
swiftlint --fix --config $CONFIG && swiftlint --config $CONFIG
|
||||
swiftlint --fix --progress --config $CONFIG && swiftlint --config $CONFIG
|
||||
echo ""
|
||||
# run analyze
|
||||
elif [[ "$argval" == "analyze" ]]; then
|
||||
|
@ -44,7 +44,7 @@ if which swiftlint >/dev/null; then
|
|||
echo "Running anaylze..."
|
||||
echo ""
|
||||
xcodebuild -scheme $SCHEME -project $PROJECT clean build-for-testing > $LOG
|
||||
swiftlint analyze --fix --format --strict --config $CONFIG --compiler-log-path $LOG
|
||||
swiftlint analyze --fix --progress --format --strict --config $CONFIG --compiler-log-path $LOG
|
||||
rm $LOG
|
||||
echo ""
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue