Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 101 additions & 7 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion client/src/lib/progress/progressChartConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down