diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..dc67085fe --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,36 @@ +name: Lint checks +on: + workflow_dispatch: + pull_request: + branches: + - main +defaults: + run: + shell: bash + working-directory: . +jobs: + lint: + name: Run lint checks + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Setup Node.js 18.x + uses: actions/setup-node@v2 + with: + node-version: 18.x + + - name: Install pnpm + run: corepack enable && corepack prepare pnpm@7.26.3 --activate + + - name: Test build + run: make build + + - name: ESlint + run: pnpm run lint + + - name: Storybook + run: pnpm run build-storybook