Skip to content

Commit

Permalink
Merge branch 'e2e-sync-before-reading'
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkisemils committed Oct 21, 2024
2 parents 12dd4f4 + 1dadbb1 commit e71e145
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/run-ios-e2e-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ runs:
# Set up a unique output directory
- name: Set up outputs directory
run: |
# Forcing the filesystem buffers to be flushed to ensure the
# directory tree is updated
sync
if [ -n "$TEST_NAME" ]; then
# Strip slashes to avoid creating subdirectories
test_name_sanitized=$(printf "$TEST_NAME" | sed 's/\//_/g')
Expand All @@ -45,6 +48,9 @@ runs:

- name: Run end-to-end-tests
run: |
# Forcing the filesystem buffers to be flushed to ensure the
# directory tree is updated
sync
if [ -n "$TEST_NAME" ]; then
TEST_NAME_ARGUMENT=" -only-testing $TEST_NAME"
else
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ios-end-to-end-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ jobs:
if [ -n "${{ inputs.arg_tests_json_key }}" ]; then
# JSON key supplied by another workflow calling this reusable workflow
echo "Using calling workflow supplied test suites JSON key: ${{ inputs.arg_tests_json_key }}"
# Forcing the filesystem buffers to be flushed to ensure the
# directory tree is updated
sync
test_suites_json=$(jq -r --compact-output '.tests."${{ inputs.arg_tests_json_key }}"' tests.json)
echo "test_suites_json=$test_suites_json" >> $GITHUB_ENV
elif [ -n "${{ inputs.user_supplied_test_name }}" ]; then
Expand Down

0 comments on commit e71e145

Please sign in to comment.