Bump tar from 7.5.2 to 7.5.6 #380
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Yarn validation | |
| on: | |
| pull_request: | |
| paths: | |
| - .github/workflows/yarn-validation.yml | |
| - '**/package.json' | |
| - '**/yarn.lock' | |
| merge_group: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - .github/workflows/yarn-validation.yml | |
| - '**/package.json' | |
| - '**/yarn.lock' | |
| workflow_call: | |
| workflow_dispatch: | |
| jobs: | |
| check: | |
| if: github.repository == 'software-mansion/react-native-gesture-handler' | |
| runs-on: ubuntu-latest | |
| env: | |
| YARN_ENABLE_HARDENED_MODE: 1 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v6 | |
| - name: Install root dependencies | |
| run: yarn install | |
| - name: Get changed files | |
| id: changed-files | |
| uses: tj-actions/changed-files@v46 | |
| with: | |
| files: | | |
| **/package.json | |
| **/yarn.lock | |
| files_ignore: | | |
| packages/react-native-gesture-handler/DrawerLayout/package.json | |
| packages/react-native-gesture-handler/ReanimatedDrawerLayout/package.json | |
| packages/react-native-gesture-handler/Swipeable/package.json | |
| packages/react-native-gesture-handler/ReanimatedSwipeable/package.json | |
| packages/react-native-gesture-handler/jest-utils/package.json | |
| - name: Get list of changed directories | |
| id: changed-dirs | |
| run: | | |
| ECHOLIST=() | |
| for CHANGE in ${{ steps.changed-files.outputs.all_changed_files }} | |
| do | |
| DIR=$(dirname "$CHANGE") | |
| ECHOLIST+=("$DIR") | |
| done | |
| ECHOLIST=($(echo "${ECHOLIST[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' ')) | |
| echo "dirList=${ECHOLIST[*]}" >> $GITHUB_OUTPUT | |
| - name: Perform yarn install in changed directories | |
| working-directory: ${{ github.workspace }} | |
| run: | | |
| for DIR in ${{ steps.changed-dirs.outputs.dirList }} | |
| do | |
| echo "Yarn install in $DIR" | |
| echo $(pwd) | |
| cd "$DIR" && yarn install --immutable && cd ${{ github.workspace }} | |
| done |