Skip to content

Commit

Permalink
add build and test ci for benchmark changes
Browse files Browse the repository at this point in the history
Signed-off-by: Rishabh Singh <[email protected]>
  • Loading branch information
rishabh6788 committed Sep 5, 2024
1 parent b58620f commit dca88a3
Show file tree
Hide file tree
Showing 5 changed files with 1,286 additions and 857 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/benchmark-cp-build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Benchmark Control Plane Build and Test

on:
pull_request:
paths:
- benchmark-control-plane/**

jobs:
build-and-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: benchmark-control-plane/infra

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v4
with:
node-version: 16.x

- name: Run CDK Build and Test
run: |
npm install
npm run build
- name: Run test coverage
run: |
npm test -- --coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
37 changes: 37 additions & 0 deletions benchmark-control-plane/infra/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
module.exports = {
env: {
browser: false,
es6: true,
jest: true,
},
extends: [
'airbnb-base',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
},
plugins: [
'@typescript-eslint',
],
rules: {
hasTrailingComma: 'off',
indent: ['error', 2],
'import/extensions': 'error',
'import/no-namespace': 'error',
'import/no-unresolved': 'error',
'import/no-extraneous-dependencies': 'error',
'import/prefer-default-export': 'off',
'max-classes-per-file': 'off',
'no-unused-vars': 'off',
'no-new': 'off',
'max-len': ['error', { 'code': 160, 'ignoreComments': true }],
"no-param-reassign": 0,
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"]
},
};
1 change: 1 addition & 0 deletions benchmark-control-plane/infra/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.js
!.eslintrc.js
!jest.config.js
*.d.ts
node_modules
Expand Down
Loading

0 comments on commit dca88a3

Please sign in to comment.