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
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
30 changes: 30 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"root": true,
"env": {
"es2022": true,
"node": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:n/recommended",
"plugin:promise/recommended",
"plugin:import/recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"rules": {
"no-console": "off"
},
"ignorePatterns": [
"node_modules/",
"dist/",
"build/",
"coverage/",
"**/logs/",
"**/*.min.js"
]
}
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
branches: [main, Daniel-Dev]
pull_request:
branches: [main]

jobs:
lint-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
service: [wcapi, agricasst, price-monitoring]
Copy link

Copilot AI Nov 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect indentation for matrix configuration. The service: key should be indented with 8 spaces (or 4 additional spaces from matrix:), not 2. This will cause the GitHub Actions workflow to fail with a syntax error.

Suggested change
service: [wcapi, agricasst, price-monitoring]
service: [wcapi, agricasst, price-monitoring]

Copilot uses AI. Check for mistakes.

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint -w src/${{ matrix.service }}

- name: Run tests
run: npm test -w src/${{ matrix.service }}
env:
NODE_ENV: test
14 changes: 13 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
node_modules
.env
.env.*
logs
logs/*
logs/*
dist
build
coverage
.DS_Store
.vscode
npm-debug.log*
yarn-debug.log*
yarn-error.log*
*.log
*.tmp
**/*.local
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
dist
build
coverage
logs
.DS_Store
.vscode
7 changes: 7 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100,
"arrowParens": "always"
}
Loading