diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml new file mode 100644 index 000000000..ca74b33eb --- /dev/null +++ b/.github/workflows/pr-check.yml @@ -0,0 +1,17 @@ +name: Check PRs + +on: + pull_request + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '22.x' + - run: npm ci + - run: npm run lint:check diff --git a/package.json b/package.json index 5bf5da294..5cd439e4a 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "build": "vite build --mode prod", "preview": "vite preview", "lint": "eslint --fix src/", + "lint:check": "eslint src/", "prepare": "husky install", "test": "jest tests" },