Skip to content

Commit

Permalink
Copied root files from tracker to data-repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Beal committed Jan 11, 2023
1 parent e8b475e commit 95be9d1
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: ['.eslintrc.js'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'error',
},
};
45 changes: 45 additions & 0 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
target-determinator:
runs-on: ubuntu-20.04
outputs:
targets: ${{ steps.set-targets.outputs.targets }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- id: get-changed-files
uses: jitterbit/get-changed-files@v1
with:
format: json
- id: target-determinator
uses: sargunv/yarn-target-determinator@v1
with:
files: ${{ steps.get-changed-files.outputs.all }}
- id: set-targets
run: echo '::set-output name=targets::${{ steps.target-determinator.outputs.targets }}'

test:
runs-on: ubuntu-20.04
needs: [target-determinator]
strategy:
fail-fast: false
matrix:
target: ${{ fromJson(needs.target-determinator.outputs.targets) }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: yarn install
- run: yarn workspaces foreach -Rptv --from ${{ matrix.target }} run build
- run: DISABLE_MONGO_TESTS=true yarn workspace ${{ matrix.target }} run test
- run: yarn workspace ${{ matrix.target }} run lint
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 120
}
14 changes: 14 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "@tsconfig/node16/tsconfig.json",
"compilerOptions": {
"declaration": true,
"removeComments": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
"incremental": true,
"strictBindCallApply": false,
"noFallthroughCasesInSwitch": false,
"strict": true
}
}
1 change: 1 addition & 0 deletions tsconfig.tsbuildinfo

Large diffs are not rendered by default.

0 comments on commit 95be9d1

Please sign in to comment.