Bernt Christian Egeland пре 7 месеци
родитељ
комит
868ef38aad
3 измењених фајлова са 31 додато и 55 уклоњено
  1. 2 29
      .github/labeler.yml
  2. 4 26
      .github/release-drafter.yml
  3. 25 0
      .github/workflows/ci.yml

+ 2 - 29
.github/labeler.yml

@@ -1,39 +1,12 @@
-feature:
-  - changed-files:
-      - any-glob-to-any-file:
-          - src/features/**
-          - src/app/**
-
-bug:
+torqvoice:
   - changed-files:
       - any-glob-to-any-file:
           - src/**
-
-dependencies:
-  - changed-files:
-      - any-glob-to-any-file:
-          - package.json
-          - package-lock.json
-
-database:
-  - changed-files:
-      - any-glob-to-any-file:
           - prisma/**
-
-docker:
-  - changed-files:
-      - any-glob-to-any-file:
-          - Dockerfile
-          - docker-compose*.yml
-          - .devcontainer/**
+          - package.json
 
 documentation:
   - changed-files:
       - any-glob-to-any-file:
           - '*.md'
           - docs/**
-
-ci:
-  - changed-files:
-      - any-glob-to-any-file:
-          - .github/**

+ 4 - 26
.github/release-drafter.yml

@@ -1,30 +1,12 @@
 name-template: 'v$RESOLVED_VERSION'
 tag-template: 'v$RESOLVED_VERSION'
 categories:
-  - title: '🚀 Features'
+  - title: '🚀 Changes'
     labels:
-      - 'feature'
-      - 'enhancement'
-  - title: '🐛 Bug Fixes'
-    labels:
-      - 'fix'
-      - 'bugfix'
-      - 'bug'
-  - title: '🗄️ Database'
-    labels:
-      - 'database'
-  - title: '🐳 Docker'
-    labels:
-      - 'docker'
-  - title: '📦 Dependencies'
-    labels:
-      - 'dependencies'
+      - 'torqvoice'
   - title: '📝 Documentation'
     labels:
       - 'documentation'
-  - title: '⚙️ CI/CD'
-    labels:
-      - 'ci'
 change-template: '- $TITLE (#$NUMBER)'
 change-title-escapes: '\<*_&'
 exclude-contributors:
@@ -35,14 +17,10 @@ version-resolver:
       - 'major'
   minor:
     labels:
-      - 'feature'
-      - 'enhancement'
+      - 'torqvoice'
   patch:
     labels:
-      - 'bug'
-      - 'bugfix'
-      - 'fix'
-      - 'dependencies'
+      - 'documentation'
   default: patch
 template: |
   ## Release Notes

+ 25 - 0
.github/workflows/ci.yml

@@ -0,0 +1,25 @@
+name: CI
+
+on:
+  pull_request:
+    branches: [main]
+
+jobs:
+  ci:
+    name: Lint & Build
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+
+      - uses: actions/setup-node@v4
+        with:
+          node-version: 22
+          cache: npm
+
+      - run: npm ci
+
+      - run: npm run lint
+
+      - run: npx prisma generate
+
+      - run: npm run build