Skip to content

[chore]: CI - Check CFBundleShortVersionString in Info.plist #1006

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jan 21, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/scripts/test_version_number.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# get the version number from the Info.plist file using agvtool
VERS=$(xcrun agvtool mvers -terse1)

# if the version number is empty, exit with an error
if [ "$VERS" == "" ]; then
echo "No version number found"
echo "Make sure Info.plist has a CFBundleShortVersionString key"
echo ""
echo "If Info.plist does not have a CFBundleShortVersionString key, add the following to your Info.plist file:"
echo ""
echo "<key>CFBundleShortVersionString</key>"
echo "<string>0.0.1</string>"
echo ""
echo "For more information see https://github.com/CodeEditApp/CodeEdit/pull/1006"
exit 1 # exit with an error
else
echo "Version number is $VERS"
exit 0 # exit with no error
fi
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Check Version Number exists
run: exec ./.github/scripts/test_version_number.sh
- name: Testing App
run: exec ./.github/scripts/test_app.sh arm