diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a0be917 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: Build + +on: + workflow_dispatch: + pull_request: + types: [opened, reopened, synchronize, ready_for_review] + paths: + - "**/*.{js,jsx,ts,tsx}" + - "package*.json" + - ".github/workflows/build.yml" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "18" + cache: "npm" + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build diff --git a/src/lib/queries/srf-deployments.ts b/src/lib/queries/srf-deployments.ts index de15fe6..e0e025b 100644 --- a/src/lib/queries/srf-deployments.ts +++ b/src/lib/queries/srf-deployments.ts @@ -203,7 +203,11 @@ export const fetchProxyDeploymentsByReference = async (variables: { reference: string; }): Promise => { try { - const data = await graphQLClient.request( + const data: { + [x: string]: { + singleRequestProxyDeployments: SingleRequestProxyDeployment[]; + }; + } = await graphQLClient.request( PROXY_DEPLOYMENTS_BY_REFERENCE_QUERY, variables );