Skip to content

Commit 46af455

Browse files
committed
Remove deprecated args
1 parent 862cc7a commit 46af455

File tree

3 files changed

+0
-72
lines changed

3 files changed

+0
-72
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -784,65 +784,3 @@ jobs:
784784
printf "::error::Executed command did not match expectations!\nExecuted: ${ACTUAL_COMMAND}\nExpected: ${EXPECTED_COMMAND}\n"
785785
exit 1
786786
fi
787-
788-
test-dry-run-deprecated-args:
789-
name: Dry Run Deprecated Args
790-
runs-on: ubuntu-latest
791-
env:
792-
INPUT_PROJECT: TestProject.xcodeproj
793-
INPUT_SCHEME: TestScheme
794-
steps:
795-
- if: ${{ github.event_name == 'pull_request' && env.RUNNER_DEBUG != 1 }}
796-
run: echo 'RUNNER_DEBUG=1' >> "${GITHUB_ENV}"
797-
- if: ${{ github.event_name == 'pull_request' }}
798-
run: test "${RUNNER_DEBUG}" == "1"
799-
- if: ${{ github.event_name == 'push' }}
800-
env:
801-
DEBUG_ENABLED: ${{ secrets.ACTIONS_STEP_DEBUG }}
802-
run: test "${DEBUG_ENABLED}" == 'true'
803-
- uses: actions/checkout@v4
804-
- name: Generate action code
805-
if: ${{ github.event_name == 'pull_request' }}
806-
uses: ./.github/actions/generate-action-code
807-
- uses: sersoft-gmbh/xcodebuild-action@main
808-
if: ${{ github.event_name == 'push' }}
809-
id: xcodebuild-main
810-
with:
811-
project: ${{ env.INPUT_PROJECT }}
812-
scheme: ${{ env.INPUT_SCHEME }}
813-
use-xcpretty: true
814-
dry-run: true
815-
- uses: './'
816-
if: ${{ github.event_name == 'pull_request' }}
817-
id: xcodebuild-local
818-
with:
819-
project: ${{ env.INPUT_PROJECT }}
820-
scheme: ${{ env.INPUT_SCHEME }}
821-
use-xcpretty: true
822-
dry-run: true
823-
- id: xcodebuild
824-
env:
825-
EVENT_NAME: ${{ github.event_name }}
826-
BRANCH_UNPROCESSED_COMMAND: ${{ steps.xcodebuild-main.outputs.unprocessed-command }}
827-
BRANCH_EXECUTED_COMMAND: ${{ steps.xcodebuild-main.outputs.executed-command }}
828-
LOCAL_UNPROCESSED_COMMAND: ${{ steps.xcodebuild-local.outputs.unprocessed-command }}
829-
LOCAL_EXECUTED_COMMAND: ${{ steps.xcodebuild-local.outputs.executed-command }}
830-
run: |
831-
if [ "${EVENT_NAME}" == 'push' ]; then
832-
echo "unprocessed-command=${BRANCH_UNPROCESSED_COMMAND}" >> "${GITHUB_OUTPUT}"
833-
echo "executed-command=${BRANCH_EXECUTED_COMMAND}" >> "${GITHUB_OUTPUT}"
834-
else
835-
echo "unprocessed-command=${LOCAL_UNPROCESSED_COMMAND}" >> "${GITHUB_OUTPUT}"
836-
echo "executed-command=${LOCAL_EXECUTED_COMMAND}" >> "${GITHUB_OUTPUT}"
837-
fi
838-
- name: Check executed command
839-
env:
840-
UNPROCESSED_COMMAND: ${{ steps.xcodebuild.outputs.unprocessed-command }}
841-
EXECUTED_COMMAND: ${{ steps.xcodebuild.outputs.executed-command }}
842-
run: |
843-
EXPECTED_COMMAND="xcodebuild -project ${INPUT_PROJECT} -scheme ${INPUT_SCHEME} test | xcpretty --color"
844-
ACTUAL_COMMAND="${UNPROCESSED_COMMAND}"
845-
if [ "${EXPECTED_COMMAND}" != "${ACTUAL_COMMAND}" ]; then
846-
printf "::error::Executed command did not match expectations!\nExecuted: ${ACTUAL_COMMAND}\nExpected: ${EXPECTED_COMMAND}\n"
847-
exit 1
848-
fi

dist/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,6 @@ async function main() {
238238
const action = core.getInput('action', { required: true });
239239
xcodebuildArgs.push(...action.split(' ').map(v => { return { name: v }; }));
240240
let outputFormatter = core.getInput('output-formatter');
241-
if (!outputFormatter && core.getBooleanInput('use-xcpretty')) {
242-
outputFormatter = 'xcpretty';
243-
if (core.getBooleanInput('xcpretty-colored-output'))
244-
outputFormatter += ' --color';
245-
}
246241
const dryRun = core.isDebug() && core.getInput('dry-run') == 'true';
247242
// We allow other platforms for dry-runs since this speeds up tests (more parallel builds).
248243
if (!dryRun && process.platform !== 'darwin')

src/main.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,6 @@ async function main() {
242242
xcodebuildArgs.push(...action.split(' ').map(v => { return { name: v }; }));
243243

244244
let outputFormatter = core.getInput('output-formatter');
245-
if (!outputFormatter && core.getBooleanInput('use-xcpretty')) {
246-
outputFormatter = 'xcpretty';
247-
if (core.getBooleanInput('xcpretty-colored-output'))
248-
outputFormatter += ' --color';
249-
}
250245

251246
const dryRun = core.isDebug() && core.getInput('dry-run') == 'true';
252247

0 commit comments

Comments
 (0)