[pull] main from expo:main #4700
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: Code Review | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| pullNumber: | |
| description: 'Number of the pull request to review' | |
| required: true | |
| pull_request_target: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.inputs.pullNumber || github.event.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| code_review: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: 👀 Checkout | |
| uses: actions/checkout@v4 | |
| - name: ⬢ Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: ➕ Add `bin` to GITHUB_PATH | |
| run: echo "$(pwd)/bin" >> $GITHUB_PATH | |
| - name: ♻️ Restore caches | |
| uses: ./.github/actions/expo-caches | |
| with: | |
| yarn-tools: 'true' | |
| - name: 🧶 Yarn install | |
| working-directory: tools | |
| if: steps.expo-caches.outputs.yarn-tools-hit != 'true' | |
| run: yarn install --immutable | |
| ### This job is run on Ubuntu which doesn't have SwiftLint installed, so we need to build it from sources. | |
| ### Building it on each run may take too much time, so we bundle the binary in `@expo/swiftlint` package. | |
| ### To update SwiftLint, uncomment steps below, download the artifact and update that package. | |
| # - name: 👷 Build and install SwiftLint | |
| # run: | | |
| # git clone https://github.com/realm/SwiftLint.git --branch 0.57.0 --depth 1 | |
| # cd SwiftLint | |
| # swift build -c release | |
| # cp .build/release/swiftlint /usr/local/bin/ | |
| # - name: 📦 Make an artifact | |
| # uses: actions/upload-artifact@v4 | |
| # with: | |
| # name: swiftlint | |
| # path: SwiftLint/.build | |
| # include-hidden-files: true | |
| - name: 🔬 Reviewing a pull request | |
| run: expotools code-review --pr ${{ github.event.inputs.pullNumber || github.event.number }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.EXPO_BOT_GITHUB_TOKEN }} |