Chainlink CI #62685
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
| # USAGE | |
| # | |
| # This workflow is triggered whenever a pull_request event is triggered within | |
| # the _smartcontractkit/chainlink_ repository. Then, the status of this workflow | |
| # is returned back and propagated. See https://github.com/marketplace/actions/trigger-workflow-and-wait for more information | |
| # | |
| # PURPOSE | |
| # This checks if breaking changes are made to the schema within a PR in the | |
| # smartcontractkit/chainlink repo, then fails if so. Schema changes should | |
| # never be breaking. See https://graphql.org/learn/best-practices/#versioning | |
| name: Chainlink CI | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| ref: | |
| required: true | |
| description: The chainlink ref to test against | |
| tag: | |
| required: true | |
| description: The operator-ui tag/commit to checkout againsta | |
| jobs: | |
| detect-gql-breaking-changes: | |
| name: Detect GQL Breaking Changes | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the repo | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ inputs.tag }} | |
| - name: Setup node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .tool-versions | |
| cache: yarn | |
| - name: Run yarn install | |
| run: yarn install --frozen-lockfile | |
| - name: Test setup | |
| run: yarn codegen | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| REPO_REF: ${{ inputs.ref }} |