From 107b2da182a2a21d77e32cd1bd15b658e0c659bf Mon Sep 17 00:00:00 2001 From: Michael Schramm Date: Mon, 3 Jan 2022 10:13:18 +0100 Subject: [PATCH] add linter and fix types for submission field --- .github/workflows/test.yml | 33 +++++++++++++++++++ .../mutation/submission.set.field.mutation.ts | 1 + 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..993ea06 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: Lint + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + run-linters: + name: Run linters + runs-on: ubuntu-latest + + steps: + - name: Check out Git repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v1 + with: + node-version: 16 + + # ESLint and Prettier must be in `package.json` + - name: Install Node.js dependencies + run: yarn install --frozen-lockfile --silent + + - name: Lint + run: yarn lint + + - name: Lint + run: yarn type-check diff --git a/graphql/mutation/submission.set.field.mutation.ts b/graphql/mutation/submission.set.field.mutation.ts index 59146b2..c8a75aa 100644 --- a/graphql/mutation/submission.set.field.mutation.ts +++ b/graphql/mutation/submission.set.field.mutation.ts @@ -12,6 +12,7 @@ export interface SubmissionSetFieldMutationVariables { field: { token: string field: string + data: string } }