-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add build and test ci for benchmark changes
Signed-off-by: Rishabh Singh <[email protected]>
- Loading branch information
1 parent
b58620f
commit dca88a3
Showing
5 changed files
with
1,286 additions
and
857 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*.js | ||
!.eslintrc.js | ||
!jest.config.js | ||
*.d.ts | ||
node_modules | ||
|
Oops, something went wrong.