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
4 changes: 2 additions & 2 deletions .github/workflows/ci-helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 20
node-version: 24
- name: Install packages
run: |
cd ci/
Expand All @@ -67,5 +67,5 @@ jobs:
CI_GIT_BASELINE_BRANCH: ${{ inputs.CI_GIT_BASELINE_BRANCH }}
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
run: |
cd ci/
cd ci/
npm run update-helm-chart-deps
2 changes: 1 addition & 1 deletion .github/workflows/create_rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

- uses: actions/setup-node@v6
with:
node-version: '20'
node-version: '24'

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
if: always() && contains(needs.release.result, 'success') && !github.event.act
runs-on: ubuntu-22.04
container:
image: linode/apl-tools:v2.10.3
image: linode/apl-tools:v2.10.4
options: --user 0 # See https://docs.github.com/en/actions/sharing-automations/creating-actions/dockerfile-support-for-github-actions#user
steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/patch_rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

- uses: actions/setup-node@v6
with:
node-version: '20'
node-version: '24'

- name: Install dependencies
if: ${{ env.RC_RELEASE == 'true' }}
Expand All @@ -55,7 +55,7 @@ jobs:
echo "Detected "feat"/"fix"/"chore: trigger" commits. Running standard-version..."
git config --global user.email $BOT_EMAIL
git config --global user.name $BOT_USERNAME
npm run release -- --prerelease rc --skip.changelog
npm run release -- --prerelease rc --skip.changelog

git push --follow-tags
TAG="v$(jq '.version' package.json -r)"
Expand Down
14 changes: 12 additions & 2 deletions .husky/post-checkout
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,17 @@ nvm use

# Prevent errors on shallow clones
if git rev-parse --verify HEAD@{1} >/dev/null 2>&1; then
npm run run-if-changed
# Check if package-lock.json changed
if git diff --name-only HEAD@{1} HEAD 2>/dev/null | grep -q "^package-lock.json$"; then
echo "📦 package-lock.json changed, running npm install..."
npm install --prefer-offline --no-audit
fi

# Check if values-schema.yaml changed
if git diff --name-only HEAD@{1} HEAD 2>/dev/null | grep -q "^values-schema.yaml$"; then
echo "🔨 values-schema.yaml changed, regenerating schema..."
npm run gen:chart-schema
fi
else
echo "Skipping run-if-changed: Not enough Git history"
echo "Skipping file change detection: Not enough Git history"
fi
12 changes: 11 additions & 1 deletion .husky/post-merge
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
#!/bin/sh

npm run run-if-changed
# Check if package-lock.json changed during merge
if git diff --name-only HEAD@{1} HEAD 2>/dev/null | grep -q "^package-lock.json$"; then
echo "📦 package-lock.json changed, running npm install..."
npm install --prefer-offline --no-audit
fi

# Check if values-schema.yaml changed during merge
if git diff --name-only HEAD@{1} HEAD 2>/dev/null | grep -q "^values-schema.yaml$"; then
echo "🔨 values-schema.yaml changed, regenerating schema..."
npm run gen:chart-schema
fi
12 changes: 11 additions & 1 deletion .husky/post-rewrite
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
#!/bin/sh

npm run run-if-changed
# Check if package-lock.json changed during rewrite (e.g., git rebase)
if git diff --name-only HEAD@{1} HEAD 2>/dev/null | grep -q "^package-lock.json$"; then
echo "📦 package-lock.json changed, running npm install..."
npm install --prefer-offline --no-audit
fi

# Check if values-schema.yaml changed during rewrite
if git diff --name-only HEAD@{1} HEAD 2>/dev/null | grep -q "^values-schema.yaml$"; then
echo "🔨 values-schema.yaml changed, regenerating schema..."
npm run gen:chart-schema
fi
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v22
v24
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM linode/apl-tools:v2.10.3 AS ci
FROM linode/apl-tools:v2.10.4 AS ci

ENV APP_HOME=/home/app/stack

Expand Down Expand Up @@ -36,7 +36,7 @@ FROM ci AS clean
# below command removes the packages specified in devDependencies and set NODE_ENV to production
RUN npm prune --production

FROM linode/apl-tools:v2.10.3 AS prod
FROM linode/apl-tools:v2.10.4 AS prod
ARG APPS_REVISION=''
ENV APP_HOME=/home/app/stack
ENV ENV_DIR=/home/app/stack/env
Expand Down
9 changes: 9 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,13 @@ export default defineConfig([
'prettier/prettier': 'error',
},
},
// Test files specific configuration
{
files: ['**/*.test.ts', '**/stubs/**/*.ts'],
rules: {
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
},
])
9 changes: 7 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
import type { Config } from '@jest/types'

const config: Config.InitialOptions = {
preset: 'ts-jest',
roots: ['<rootDir>/src'],
setupFilesAfterEnv: ['<rootDir>/src/test-init.ts'],
moduleDirectories: ['node_modules', __dirname],
modulePathIgnorePatterns: ['src/cmd/test.ts'],
testEnvironment: 'node',
moduleNameMapper: {
'^yargs$': '<rootDir>/src/stubs/yargs.ts',
'^uuid$': '<rootDir>/src/stubs/uuid.ts',
},
transform: {
'^.+\\.tsx?$': 'babel-jest',
'^.+\\.jsx?$': 'babel-jest',
'^.+\\.(ts|tsx)$': 'ts-jest',
'^.+\\.(js|jsx|mjs|cjs)$': 'babel-jest',
},
transformIgnorePatterns: [
'node_modules/(?!(@kubernetes/client-node|node-fetch|zx|yaml|glob|minimatch|fetch-blob|formdata-polyfill|data-uri-to-buffer|web-streams-polyfill|openid-client|oauth4webapi|jose)/)',
Expand Down
Loading
Loading