Potential fix for code scanning alert no. 136: Workflow does not cont… #2
Workflow file for this run
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: Build Metro Packages | ||
| on: | ||
| workflow_call: | ||
| secrets: inherit | ||
| jobs: | ||
| build-metro: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 15 | ||
| steps: | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Install Pnpm | ||
| run: | | ||
| corepack prepare [email protected] --activate | ||
| corepack enable | ||
| - name: Setup Node.js 18 | ||
| uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: '18' | ||
| cache: 'pnpm' | ||
| - name: Set Nx SHA | ||
| uses: nrwl/nx-set-shas@v3 | ||
| - name: Install Dependencies | ||
| run: pnpm install | ||
| - name: Build Metro Packages | ||
| run: | | ||
| npx nx run-many --targets=build --projects=tag:type:metro --parallel=2 --skip-nx-cache | ||
| npx nx run-many --targets=build --projects=tag:type:metro --parallel=2 | ||
| - name: Test Metro Packages | ||
| uses: nick-fields/retry@v3 | ||
| with: | ||
| max_attempts: 2 | ||
| timeout_minutes: 5 | ||
| command: npx nx affected -t test --parallel=2 --exclude='*,!tag:type:metro' | ||
| - name: Lint Metro Packages | ||
| run: npx nx run-many --targets=lint --projects=tag:type:metro --parallel=2 | ||