diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..3f46afdc --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,30 @@ + +name: Lint + +on: + pull_request: + push: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '20.x' + cache: 'yarn' + + - name: Install dependencies + run: yarn install --immutable --immutable-cache --check-cache + + - name: Build + run: yarn build + + - name: Lint + run: yarn lint