-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (51 loc) · 1.91 KB
/
chainlink-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# 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 against
jobs:
detect-gql-breaking-changes:
name: Detect GQL Breaking Changes
runs-on: ubuntu-latest
steps:
- name: Collect Metrics
id: collect-gha-metrics
uses: smartcontractkit/push-gha-metrics-action@dea9b546553cb4ca936607c2267a09c004e4ab3f # v3.0.0
with:
id: detect-gql-breaking-changes
org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }}
basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }}
hostname: ${{ secrets.GRAFANA_INTERNAL_HOST }}
this-job-name: Detect GQL Breaking Changes
continue-on-error: true
- name: Checkout the repo
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
ref: ${{ inputs.tag }}
- name: Setup node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
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 }}