Skip to content

Devel

Devel #21

name: Check Pull Request
on:
pull_request:
types: [opened, reopened, synchronize, edited]
jobs:
list-packages:
uses: ./.github/workflows/list-packages.yml
# lint:
# needs: list-packages
# strategy:
# fail-fast: false
# matrix:
# package: ${{ fromJson(needs.list-packages.outputs.packages) }}
# uses: ./.github/workflows/lint-code.yml
# with:
# node_version: '20'
# package_name: "${{ matrix.package }}"
format:
needs: [list-packages, lint]

Check failure on line 23 in .github/workflows/pull-request-created.yml

View workflow run for this annotation

GitHub Actions / Check Pull Request

Invalid workflow file

The workflow is not valid. .github/workflows/pull-request-created.yml (Line: 23, Col: 28): Job 'format' depends on unknown job 'lint'. .github/workflows/pull-request-created.yml (Line: 34, Col: 28): Job 'build' depends on job 'format' which creates a cycle in the dependency graph.
strategy:
fail-fast: false
matrix:
package: ${{ fromJson(needs.list-packages.outputs.packages) }}
uses: ./.github/workflows/format-code.yml
with:
node_version: '20'
package_name: "${{ matrix.package }}"
build:
needs: [list-packages, format]
strategy:
fail-fast: false
matrix:
package: ${{ fromJson(needs.list-packages.outputs.packages) }}
uses: ./.github/workflows/build-code.yml
with:
node_version: '20'
package_name: "${{ matrix.package }}"
test:
needs: [list-packages, build]
strategy:
fail-fast: false
matrix:
package: ${{ fromJson(needs.list-packages.outputs.packages) }}
uses: ./.github/workflows/test-code.yml
with:
node_version: '20'
package_name: "${{ matrix.package }}"