diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..5311a90 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,34 @@ +name: lint +on: + workflow_dispatch: + pull_request: + +jobs: + build: + name: Lint + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + + - name: Install dependencies and config + run: | + corepack enable + yarn + yarn graphql + yarn ioc-generate + + - name: Check types + run: yarn check-types + + - name: ESlint + run: yarn lint + + - name: Check formatting + run: yarn prettier-check