-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into get_status
- Loading branch information
Showing
48 changed files
with
17,064 additions
and
5,236 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,60 @@ | ||
module.exports = { | ||
'env': { | ||
'browser': true, | ||
'es6': true, | ||
'node': true | ||
}, | ||
'extends': [ | ||
'eslint:recommended', | ||
'plugin:react/recommended', | ||
'plugin:@typescript-eslint/recommended' | ||
], | ||
'parser': '@typescript-eslint/parser', | ||
'parserOptions': { | ||
'ecmaVersion': 2015, | ||
'sourceType': 'module' | ||
}, | ||
'plugins': [ | ||
'react', | ||
'@typescript-eslint', | ||
'import' | ||
], | ||
'rules': { | ||
'indent': ['error', 2, { 'SwitchCase': 1 }], | ||
'quotes': ['warn', 'single', 'avoid-escape'], | ||
'linebreak-style': ['error', 'unix'], | ||
'camelcase': ['error', { 'properties': 'never' }], | ||
'eol-last': ['error', 'always'], | ||
'keyword-spacing': 'error', | ||
'no-trailing-spaces': 'error', | ||
'space-before-function-paren': ['error', {'named': 'never'}], | ||
'react/display-name': 'off', | ||
'@typescript-eslint/no-empty-function': 'off', | ||
'@typescript-eslint/no-inferrable-types': 'error', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
'@typescript-eslint/no-unused-vars': ['warn', { 'argsIgnorePattern': '^_' }], | ||
'prefer-const': ['error', { | ||
'destructuring': 'all' | ||
}] | ||
}, | ||
'overrides': [{ | ||
'files': ['src/**/*.ts'], | ||
'excludedFiles': ['src/**/__tests__/**'], | ||
'extends': [ | ||
'plugin:compat/recommended' | ||
], | ||
'settings': { | ||
'polyfills': [ | ||
'Promise' // required as a polyfill by the user | ||
] | ||
}, | ||
'rules': { | ||
'no-restricted-syntax': ['error', 'ForOfStatement', 'ForInStatement'], | ||
'compat/compat': ['error', 'defaults, not ie < 11'], | ||
'no-throw-literal': 'error', | ||
'import/no-self-import': 'error', | ||
'import/no-default-export': 'error', | ||
} | ||
}], | ||
}; |
Validating CODEOWNERS rules …
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 @@ | ||
* @splitio/sdk |
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
|
||
## How do we test the changes introduced in this PR? | ||
|
||
## Extra Notes | ||
## Extra Notes |
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,70 @@ | ||
name: ci | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
pull_request_target: | ||
branches: | ||
- development | ||
push: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up nodejs | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 'lts/*' | ||
cache: 'npm' | ||
|
||
- name: npm CI | ||
run: npm ci | ||
|
||
- name: npm Check | ||
run: npm run check | ||
|
||
- name: npm Test | ||
run: npm run test -- --coverage | ||
|
||
- name: npm Build | ||
run: npm run build | ||
|
||
- name: Set VERSION env | ||
run: echo "VERSION=$(cat package.json | jq -r .version)" >> $GITHUB_ENV | ||
|
||
- name: SonarQube Scan (Push) | ||
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/development') | ||
uses: SonarSource/sonarcloud-github-action@v1.9 | ||
env: | ||
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
projectBaseDir: . | ||
args: > | ||
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }} | ||
-Dsonar.projectVersion=${{ env.VERSION }} | ||
-Dsonar.branch.name=${{ github.ref_name }} | ||
- name: SonarQube Scan (Pull Request) | ||
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target' | ||
uses: SonarSource/sonarcloud-github-action@v1.9 | ||
env: | ||
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
projectBaseDir: . | ||
args: > | ||
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }} | ||
-Dsonar.projectVersion=${{ env.VERSION }} | ||
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }} | ||
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }} | ||
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }} |
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,45 @@ | ||
name: Update License Year | ||
|
||
on: | ||
schedule: | ||
- cron: "0 3 1 1 *" # 03:00 AM on January 1 | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set Current year | ||
run: "echo CURRENT=$(date +%Y) >> $GITHUB_ENV" | ||
|
||
- name: Set Previous Year | ||
run: "echo PREVIOUS=$(($CURRENT-1)) >> $GITHUB_ENV" | ||
|
||
- name: Update LICENSE | ||
uses: jacobtomlinson/gha-find-replace@v3 | ||
with: | ||
find: ${{ env.PREVIOUS }} | ||
replace: ${{ env.CURRENT }} | ||
include: "LICENSE" | ||
regex: false | ||
|
||
- name: Commit files | ||
run: | | ||
git config user.name 'github-actions[bot]' | ||
git config user.email 'github-actions[bot]@users.noreply.github.com' | ||
git commit -m "Updated License Year" -a | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
title: Update License Year | ||
branch: update-license |
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 |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
node_modules | ||
lib | ||
es | ||
types | ||
coverage | ||
examples | ||
.vscode | ||
.vscode | ||
.scannerwork |
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 +1 @@ | ||
v10.16 | ||
lts/* |
This file was deleted.
Oops, something went wrong.
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
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
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
Oops, something went wrong.