[CI] update workflows, scripts, bundle

This commit is contained in:
Jesse Squires 2023-03-27 21:41:02 -07:00
parent 96873b33d7
commit 5acad5960e
No known key found for this signature in database
GPG Key ID: 153766AC1FA1A758
6 changed files with 7 additions and 8 deletions

View File

@ -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:

View File

@ -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

View File

@ -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

1
.ruby-version Normal file
View File

@ -0,0 +1 @@
3.2

View File

@ -149,4 +149,4 @@ DEPENDENCIES
danger-swiftlint
BUNDLED WITH
2.3.9
2.4.10

View File

@ -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