Compare commits
7 Commits
29619658fc
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 1f4005f5d4 | |||
| 0547f6a41c | |||
| 28674fb023 | |||
| b640cfdb74 | |||
| d076fba0c0 | |||
| f155a7952a | |||
| 0e62f0f80b |
@@ -10,10 +10,9 @@ env:
|
||||
IMAGE_NAME: ${{ gitea.repository }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
test:
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@@ -32,6 +31,26 @@ jobs:
|
||||
- name: Run tests
|
||||
run: npm run test
|
||||
|
||||
build:
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
needs: test
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
@@ -51,10 +70,11 @@ jobs:
|
||||
type=sha,prefix=,format=short
|
||||
type=raw,value=latest,enable={{is_default_branch}}
|
||||
|
||||
- name: Build and push
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
no-cache: true
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
@@ -54,3 +54,6 @@ data/documents/
|
||||
.vscode/
|
||||
.react-router
|
||||
.continue
|
||||
.opencode
|
||||
|
||||
docs/superpowers
|
||||
@@ -6,8 +6,8 @@ import {
|
||||
|
||||
describe("kategorie-defaults.ts", () => {
|
||||
describe("DEFAULT_AUSGABE_KATEGORIEN", () => {
|
||||
it("should have 15 default expense categories", () => {
|
||||
expect(DEFAULT_AUSGABE_KATEGORIEN).toHaveLength(15);
|
||||
it("should have 17 default expense categories", () => {
|
||||
expect(DEFAULT_AUSGABE_KATEGORIEN).toHaveLength(17);
|
||||
});
|
||||
|
||||
it("should include common expense categories", () => {
|
||||
@@ -48,8 +48,8 @@ describe("kategorie-defaults.ts", () => {
|
||||
});
|
||||
|
||||
describe("DEFAULT_EINNAHME_KATEGORIEN", () => {
|
||||
it("should have 9 default revenue categories", () => {
|
||||
expect(DEFAULT_EINNAHME_KATEGORIEN).toHaveLength(9);
|
||||
it("should have 10 default revenue categories", () => {
|
||||
expect(DEFAULT_EINNAHME_KATEGORIEN).toHaveLength(10);
|
||||
});
|
||||
|
||||
it("should include Fußpflege category", () => {
|
||||
@@ -145,8 +145,8 @@ describe("kategorie-defaults.ts", () => {
|
||||
typ: "EINNAHME" as const,
|
||||
}));
|
||||
|
||||
expect(defaultExpenseCategories).toHaveLength(15);
|
||||
expect(defaultRevenueCategories).toHaveLength(9);
|
||||
expect(defaultExpenseCategories).toHaveLength(17);
|
||||
expect(defaultRevenueCategories).toHaveLength(10);
|
||||
expect(defaultExpenseCategories[0].typ).toBe("AUSGABE");
|
||||
expect(defaultRevenueCategories[0].typ).toBe("EINNAHME");
|
||||
});
|
||||
@@ -157,8 +157,8 @@ describe("kategorie-defaults.ts", () => {
|
||||
"Custom Expense Category",
|
||||
];
|
||||
|
||||
expect(customCategories.length).toBe(16); // 15 defaults + 1 custom
|
||||
expect(customCategories[15]).toBe("Custom Expense Category");
|
||||
expect(customCategories.length).toBe(18); // 17 defaults + 1 custom
|
||||
expect(customCategories[customCategories.length - 1]).toBe("Custom Expense Category");
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user