aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorLeander Scherer <80996591+schererleander@users.noreply.github.com>2025-10-04 03:03:43 +0200
committerGitHub <noreply@github.com>2025-10-04 03:03:43 +0200
commit26dea9c6ccb625219ac2f6ed7a190d87c4366493 (patch)
tree1c0739a43a5341188481c357487fcdbfcc334c3f /.github/workflows/ci.yml
parent81bdbc1677b318b1b53caaabaa3a44e685af5b66 (diff)
Create ci.yml
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml37
1 files changed, 37 insertions, 0 deletions
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