From 3ea7491e83f09bba84dfd318c1d3bd27ce785a3c Mon Sep 17 00:00:00 2001 From: Bruno Rocha Date: Sat, 9 May 2020 17:44:54 +0200 Subject: [PATCH] Update example project --- .github/workflows/ci.yml | 2 ++ ExampleProject/Makefile | 9 +++++++++ ExampleProject/_CDToMeAndRun.sh | 6 ------ 3 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 ExampleProject/Makefile delete mode 100755 ExampleProject/_CDToMeAndRun.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2b8b012..d800cd1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,8 @@ jobs: DEVELOPER_DIR: /Applications/Xcode_11.4.app/Contents/Developer - name: Run tests run: swift test + - name: Check the example project + run: cd ./ExampleProject && make swiftinfo env: DEVELOPER_DIR: /Applications/Xcode_11.4.app/Contents/Developer - name: Package diff --git a/ExampleProject/Makefile b/ExampleProject/Makefile new file mode 100644 index 0000000..4bcefa9 --- /dev/null +++ b/ExampleProject/Makefile @@ -0,0 +1,9 @@ +.PHONY : swiftinfo + +swiftinfo: + bundle install + bundle exec pod install + bundle exec fastlane beta + ./Pods/SwiftInfo/bin/swiftinfo + echo "-------" + echo "This bash script runs SwiftInfo outside of fastlane so you can see the output, but check out the Fastfile to see how you could use this in a real project." \ No newline at end of file diff --git a/ExampleProject/_CDToMeAndRun.sh b/ExampleProject/_CDToMeAndRun.sh deleted file mode 100755 index 947b357..0000000 --- a/ExampleProject/_CDToMeAndRun.sh +++ /dev/null @@ -1,6 +0,0 @@ -bundle install -bundle exec pod install -bundle exec fastlane beta -./Pods/SwiftInfo/bin/swiftinfo -echo "-------" -echo "This bash script runs SwiftInfo outside of fastlane so you can see the output, but check out the Fastfile to see how you could use this in a real project."