Skip to content

Commit

Permalink
fix: change gh action logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Fijalkiewicz committed May 17, 2024
1 parent 21a82d4 commit 79a4876
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ jobs:
changes:
runs-on: ubuntu-latest
outputs:
is_specific: ${{ steps.path-check.outputs.specific_dir }}
is_others: ${{ steps.path-check.outputs.others }}
is_outside_of_ios: ${{ steps.path-check.outputs.outside_of_ios }}
is_outside_of_apple: ${{ steps.path-check.outputs.outside_of_apple }}
steps:
- id: path-check
uses: dorny/paths-filter@v2
with:
list-files: shell
filters: |
specific_dir:
apple_dir:
- 'packages/cli-platform-ios/**'
- 'packages/cli-platform-apple/**'
others:
- '**/**'
outside_of_ios:
- '!packages/cli-platform-ios/**'
outside_of_apple:
- '!packages/cli-platform-apple/**'
lint:
name: Lint
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
shell: bash
steps:
- uses: actions/checkout@v3

- uses: actions/setup-java@v3
with:
distribution: 'zulu'
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
run: |
git config --global user.name "test"
git config --global user.email "test@test.com"
- name: Install dependencies
run: yarn --frozen-lockfile

Expand All @@ -107,7 +107,7 @@ jobs:

e2e-tests-windows:
needs: changes
if: needs.changes.outputs.is_others == 'true'
if: needs.changes.outputs.outside_of_apple == 'true' && needs.changes.outputs.outside_of_ios == 'true'
runs-on: windows-latest
strategy:
matrix:
Expand All @@ -118,7 +118,7 @@ jobs:
shell: bash
steps:
- uses: actions/checkout@v3

- uses: actions/setup-java@v3
with:
distribution: 'zulu'
Expand All @@ -145,7 +145,7 @@ jobs:
run: |
git config --global user.name "test"
git config --global user.email "test@test.com"
- name: Install dependencies
run: yarn --frozen-lockfile

Expand Down
2 changes: 2 additions & 0 deletions packages/cli-platform-apple/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ export {default as installPods} from './tools/installPods';

export {default as findXcodeProject} from './config/findXcodeProject';
export {default as findPbxprojFile} from './config/findPbxprojFile';

// comment to test github actions
2 changes: 2 additions & 0 deletions packages/cli-platform-ios/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ export {
} from '@react-native-community/cli-platform-apple';

export {dependencyConfig, projectConfig} from './config';

// another command to test github action

0 comments on commit 79a4876

Please sign in to comment.