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 } }