Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
"project": "./tsconfig.json",
"warnOnUnsupportedTypeScriptVersion": false
},
"plugins": [
"@typescript-eslint"
Expand All @@ -31,6 +32,8 @@
],
"no-param-reassign": "off",
"prefer-destructuring": "off",
"@typescript-eslint/no-implied-eval": "off"
"@typescript-eslint/no-implied-eval": "off",
"@typescript-eslint/space-before-blocks": "off",
"space-before-blocks": ["error", "always"]
}
}
12 changes: 6 additions & 6 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,26 @@ jobs:
working-directory: ./
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
path: ./
path: ./

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3

- name: Upload SARIF Results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: sarif-results
path: /home/runner/work/skyflow-js/results/javascript.sarif
12 changes: 7 additions & 5 deletions .github/workflows/common-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ jobs:
build-sdk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT_ACTIONS }}
fetch-depth: 0

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 14.17.6
node-version: 22
registry-url: ${{ inputs.REGISTRY_URL }}

- run: npm install --ignore-scripts
Expand Down Expand Up @@ -138,15 +138,17 @@ jobs:
if [ "${{ inputs.TAG }}" == "beta" ]; then
npm publish --tag ${{ inputs.TAG }}
elif [ "${{ inputs.TAG }}" == "internal" ]; then
curl -u ${{ secrets.JFROG_USERNAME }}:${{ secrets.JFROG_PASSWORD }} https://prekarilabs.jfrog.io/prekarilabs/api/npm/auth/ > ~/.npmrc
JFROG_AUTH=$(echo -n "$JFROG_USERNAME:$JFROG_PASSWORD" | base64 -w 0)
npm config set registry https://prekarilabs.jfrog.io/prekarilabs/api/npm/npm/
npm config set unsafe-perm true
npm config set //prekarilabs.jfrog.io/prekarilabs/api/npm/npm/:_auth "$JFROG_AUTH"
npm publish
else
npm publish
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
JFROG_USERNAME: ${{ secrets.JFROG_USERNAME }}
JFROG_PASSWORD: ${{ secrets.JFROG_PASSWORD }}

- name: Invalidate CloudFront cache 10 times
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ jobs:
ci-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14.17.6
node-version: 22
- name: install modules
run: npm ci --ignore-scripts

- name: Run tests
run: npm run test

- name: Codecov
uses: codecov/codecov-action@v2.1.0
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_REPO_UPLOAD_TOKEN }}
files: coverage/lcov.info
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check JIRA ID
uses: gsactions/commit-message-checker@v1
uses: gsactions/commit-message-checker@v2
with:
pattern: '(\[?[A-Z]{1,5}-[1-9][0-9]*)|(\[AUTOMATED\])|(Merge)|(Release).+$'
flags: 'gm'
Expand All @@ -24,21 +24,21 @@ jobs:
ci-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14.17.6
node-version: 22
- name: install modules
run: npm ci --ignore-scripts

- name: Check code quality
uses: stefanoeb/eslint-action@1.0.2
run: npx eslint src/ --ext .ts

- name: Run tests
run: npm run test

- name: Codecov
uses: codecov/codecov-action@v2.1.0
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_REPO_UPLOAD_TOKEN }}
files: coverage/lcov.info
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
issues: write
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Semgrep and jq
run: |
Expand Down
4 changes: 3 additions & 1 deletion jest.config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"verbose": true,
"collectCoverage": true,
"testEnvironment": "jsdom",
"testEnvironment": "<rootDir>/tests/custom-environment.js",
"testTimeout": 30000,
"setupFiles": ["<rootDir>/tests/setup.js"],
"moduleNameMapper":{
"^framebus$": "<rootDir>/tests/__mocks__/framebus.js",
"^.+\\.svg$": "<rootDir>/tests/__mocks__/file-mock.js"
},
"transformIgnorePatterns": ["/node_modules/(?!mime)"]
Expand Down
Loading
Loading