Skip to content

Potential fix for code scanning alert no. 136: Workflow does not cont… #2

Potential fix for code scanning alert no. 136: Workflow does not cont…

Potential fix for code scanning alert no. 136: Workflow does not cont… #2

Workflow file for this run

name: Build Metro Packages

Check failure on line 1 in .github/workflows/build-metro.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-metro.yml

Invalid workflow file

(Line: 5, Col: 14): Unexpected value 'inherit'
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