From 7fcf761f4fc2e585b3b01fa13708f1cfd995a6ad Mon Sep 17 00:00:00 2001 From: Robin Dittmar Date: Wed, 9 Sep 2026 17:00:54 +0200 Subject: [PATCH] feat: added PR checks (lint & test) and removed them from the deploy step --- .gitea/workflows/deploy.yml | 6 ------ .gitea/workflows/pr-checks.yml | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 .gitea/workflows/pr-checks.yml 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