Revert PR #1: Garcia/change to operator #9
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: Pull Request Check Code | |
| on: | |
| pull_request: | |
| paths: | |
| - "subgraphs/**" | |
| jobs: | |
| define-matrix: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| subgraphs: ${{ steps.subgraphs.outputs.subgraphs }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Define Subgraphs | |
| id: subgraphs | |
| run: | | |
| # Find all subfolders except "node_modules" and convert them into an array | |
| subfolders=($(find subgraphs -mindepth 1 -maxdepth 1 -type d ! -name "node_modules" -exec basename {} \;)) | |
| # Print the array | |
| echo "subgraphs=$(printf '%s\n' "${subfolders[@]}" | jq -R . | jq -s -c .)" >> "$GITHUB_OUTPUT" | |
| npm-build: | |
| runs-on: ubuntu-latest | |
| needs: define-matrix | |
| strategy: | |
| matrix: | |
| subgraphs: ${{ fromJson(needs.define-matrix.outputs.subgraphs) }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| cache: "npm" | |
| - run: npm ci | |
| - run: npm run build -w subgraphs/${{ matrix.subgraphs }} --if-present | |