mattermost-mobile-upstream/.github/actions/test/action.yaml
yasser khan 746e79421a
test(detox): re-submit RF→Detox migration without unintended UI changes
Re-applies #9790 Detox migration on top of current main (#9834 revert),
with post-merge CI fixes from migrate_RF_to_detox.

Removed unintended product changes flagged in team review:
- Channel autocomplete (~) quick action button (tests use typeText('~') instead)
- freezeOnBlur tab changes and freeze_repro test (perf-related, kept main behavior)
- floating_input_container refactor and learn_more FormattedText rewrite
- Unrelated WIP from migrate_RF_to_detox (calls/push/websocket/android)

Kept minimal test-only app changes:
- testID on ImageFile/VideoFile for Detox file tap targets (no extra wrapper View)
- profile_image_picker TouchableOpacity→Pressable with pressed feedback

Refs: #9790, #9834
2026-06-17 09:26:35 +00:00

44 lines
980 B
YAML

name: test
description: Common tests for mobile repo
runs:
using: composite
steps:
- name: ci/prepare-node-deps
uses: ./.github/actions/prepare-node-deps
- name: ci/check-styles
shell: bash
run: |
echo "::group::check-styles"
npm run lint &
LINT_PID=$!
npm run tsc &
TSC_PID=$!
set +e
wait "$LINT_PID"
LINT_EXIT=$?
wait "$TSC_PID"
TSC_EXIT=$?
set -e
if [ $LINT_EXIT -ne 0 ] || [ $TSC_EXIT -ne 0 ]; then
exit 1
fi
echo "::endgroup::"
- name: ci/run-tests
# main and PR will run test:coverage
if: startsWith(github.ref_name, 'release-')
shell: bash
run: |
echo "::group::run-tests"
npm run test:ci
echo "::endgroup::"
- name: ci/check-i18n
shell: bash
run: |
echo "::group::check-i18n"
./scripts/precommit/i18n.sh
echo "::endgroup::"