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
23 changes: 17 additions & 6 deletions .github/workflows/bundle-budget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,30 @@ on:
jobs:
bundle-budget:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: |
package-lock.json
frontend/package-lock.json

- name: Verify lock file
run: |
if [ ! -f package-lock.json ]; then
echo "Error: root package-lock.json is missing"
exit 1
fi

- name: Install dependencies
run: npm ci
run: npm ci -w frontend

- name: Build
env:
NEXT_PUBLIC_STELLAR_RECEIVER_ADDRESS: GAAZI4TCR3TY5OJHCTJC2A4QSY6CJWJH5IAJTGKIN2ER7LBNVKOCCWNA
run: npm run build
run: npm run build -w frontend

- name: Check bundle budget (report-only)
run: npm run bundle-budget
run: npm run bundle-budget -w frontend
26 changes: 26 additions & 0 deletions backend/jest.moderation.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/** Standalone config for moderation tests (JS only) */
module.exports = {
testEnvironment: 'node',
roots: ['<rootDir>/tests'],
testMatch: ['**/moderation.test.js'],
transform: {
'^.+\\.ts$': ['ts-jest', {
tsconfig: {
target: 'ES2020',
module: 'commonjs',
esModuleInterop: true,
skipLibCheck: true,
resolveJsonModule: true,
moduleResolution: 'node',
declaration: false,
strict: false,
}
}],
},
moduleFileExtensions: ['ts', 'js', 'json'],
transformIgnorePatterns: [],
testTimeout: 30000,
verbose: true,
forceExit: true,
clearMocks: true,
};
Loading
Loading