From 26dea9c6ccb625219ac2f6ed7a190d87c4366493 Mon Sep 17 00:00:00 2001 From: Leander Scherer <80996591+schererleander@users.noreply.github.com> Date: Sat, 4 Oct 2025 03:03:43 +0200 Subject: Create ci.yml --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/ci.yml (limited to '.github/workflows/ci.yml') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ae117a8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: CI +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + - name: Install dependencies + run: npm ci + - name: Lint + run: npm run lint --if-present + - name: Type check + run: npm run typecheck --if-present + - name: Build (Vite) + run: npm run build + + audit: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + - name: Install dependencies + run: npm ci + - name: Audit dependencies + run: npm audit -- cgit v1.3.1