diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 2ccda22..714b66a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -7,9 +7,9 @@ name: Node.js CI on: push: - branches: [main] + branches: [ main ] pull_request: - branches: [main] + branches: [ main ] env: LANG: de_DE.UTF-8 @@ -20,18 +20,63 @@ jobs: steps: - uses: actions/checkout@v6 - - name: Use Node.js - uses: actions/setup-node@v6 + - uses: actions/setup-node@v6 + with: + node-version: "24" + cache: 'npm' + - name: Clean stale lockfiles and install + run: | + rm -f client/package-lock.json server/package-lock.json shared/package-lock.json + rm -f package-lock.json + npm install + - run: npm run build -w client + + test_client: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: - node-version: "~24" + node-version: "24" + cache: 'npm' - name: Clean stale lockfiles and install run: | rm -f client/package-lock.json server/package-lock.json shared/package-lock.json rm -f package-lock.json npm install - run: npm run test -w client + + lint_client: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 + with: + node-version: "24" + cache: 'npm' + - name: Clean stale lockfiles and install + run: | + rm -f client/package-lock.json server/package-lock.json shared/package-lock.json + rm -f package-lock.json + npm install - run: npm run lint -w client - - run: npm run build -w client + + typecheck_client: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 + with: + node-version: "24" + cache: 'npm' + - name: Clean stale lockfiles and install + run: | + rm -f client/package-lock.json server/package-lock.json shared/package-lock.json + rm -f package-lock.json + npm install - run: npm run typecheck -w client build_server: @@ -42,7 +87,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v6 with: - node-version: "~24" + node-version: "24" - name: Clean stale lockfiles and install run: | rm -f client/package-lock.json server/package-lock.json shared/package-lock.json @@ -53,3 +98,52 @@ jobs: - run: npm run lint -w server - run: npm run test -w server - run: npm run typecheck -w server + + lint_server: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v6 + - name: Use Node.js + uses: actions/setup-node@v6 + with: + node-version: "24" + - name: Clean stale lockfiles and install + run: | + rm -f client/package-lock.json server/package-lock.json shared/package-lock.json + rm -f package-lock.json + npm install + - run: npm run lint -w server + + test_server: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v6 + - name: Use Node.js + uses: actions/setup-node@v6 + with: + node-version: "24" + - name: Clean stale lockfiles and install + run: | + rm -f client/package-lock.json server/package-lock.json shared/package-lock.json + rm -f package-lock.json + npm install + - run: npm run copyconfig -w server + - run: npm run test -w server + + typecheck_server: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v6 + - name: Use Node.js + uses: actions/setup-node@v6 + with: + node-version: "24" + - name: Clean stale lockfiles and install + run: | + rm -f client/package-lock.json server/package-lock.json shared/package-lock.json + rm -f package-lock.json + npm install + - run: npm run typecheck -w server diff --git a/client/src/lib/progress/progressChartConfig.ts b/client/src/lib/progress/progressChartConfig.ts index 7350682..68ed41c 100644 --- a/client/src/lib/progress/progressChartConfig.ts +++ b/client/src/lib/progress/progressChartConfig.ts @@ -2,7 +2,7 @@ import type { ChartConfiguration } from "chart.js" import { DateTime } from "luxon"; import type { ExtendedPChartDataPoint, PChartTLabel, PChartTType } from '@/lib/progress/progressChartTypes' -const X_AXIS_MIN = new Date('2024-03-01').getTime() +const X_AXIS_MIN = new Date('2024-01-01').getTime() const X_AXIS_MAX = new Date('2025-01-02').getTime() const Y_AXIS_MIN = 0