diff --git a/.eslintrc.json b/.eslintrc.json index bffb357a..f0f3abee 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,3 +1,6 @@ { - "extends": "next/core-web-vitals" + "extends": "next/core-web-vitals", + "rules": { + "@next/next/no-img-element": "off" + } } diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml new file mode 100644 index 00000000..bc3b5476 --- /dev/null +++ b/.github/workflows/pr-validation.yml @@ -0,0 +1,23 @@ + +name: PR Validation + +on: [pull_request, workflow_dispatch] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + + - run: npm ci + + - run: npx next build --no-lint + + - run: npx next lint --max-warnings=0