Skip to content

Commit

Permalink
Add full-ingestion application and corresponding CI action
Browse files Browse the repository at this point in the history
  • Loading branch information
leungkinghin-ct committed Aug 3, 2023
1 parent 5316c71 commit 1a082bd
Show file tree
Hide file tree
Showing 11 changed files with 14,841 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: CI
on: [push]

jobs:
build:
name: Build the application
build-incremental-updater:
name: Build the application for incremental-updater
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -16,4 +16,19 @@ jobs:
with:
node-version: '16.x'
- run: npm ci
- run: npm run lint && npm run prettier
- run: npm run lint && npm run prettier

build-full-ingestion:
name: Build the application for full-ingestion
runs-on: ubuntu-latest
defaults:
run:
working-directory: full-ingestion
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: '16.x'
- run: npm ci
- run: npm run lint && npm run prettier
1 change: 1 addition & 0 deletions full-ingestion/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
19 changes: 19 additions & 0 deletions full-ingestion/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
root: true,
extends: ['eslint:recommended'],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
rules: {
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'no-undef': 'error',
'no-console': 'error',
'no-const-assign': 'error',
},
env: {
es6: true,
jest: true,
node: true, //adds things like process to global
},
};
13 changes: 13 additions & 0 deletions full-ingestion/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"trailingComma": "es5",
"singleQuote": true,
"parser": "babel",
"overrides": [
{
"files": "*.json",
"options": {
"parser": "json"
}
}
]
}
Loading

0 comments on commit 1a082bd

Please sign in to comment.