diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index ff9fbbd..506bed2 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -26,12 +26,6 @@ jobs: - name: Install dependencies run: npm ci - - name: Lint - run: npm run lint - - - name: Run unit tests - run: npm run test:unit - - name: Build run: npm run build diff --git a/.gitea/workflows/pr-checks.yml b/.gitea/workflows/pr-checks.yml new file mode 100644 index 0000000..17b3653 --- /dev/null +++ b/.gitea/workflows/pr-checks.yml @@ -0,0 +1,24 @@ +name: PR Checks + +on: + pull_request: + branches: + - main + +jobs: + lint-and-test: + runs-on: ubuntu-latest + container: + image: node:24-bookworm + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install dependencies + run: npm ci + + - name: Lint + run: npm run lint + + - name: Run unit tests + run: npm run test:unit