Skip to content
Merged
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: 6 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
node_modules/
node_modules/
coverage/
android/build/
ios/Pods/
example/AwesomeProject/
example/ExpoProject/
23 changes: 22 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,29 @@
"sourceType": "module",
"project": ["**/tsconfig.json"]
},
"globals": {
"ErrorUtils": "readonly"
},
"overrides": [
{
"files": ["__tests__/**/*"],
"env": {
"jest": true
},
"rules": {
"quotes": ["error", "single", { "avoidEscape": true }],
"global-require": "off",
"no-await-in-loop": "off",
"no-promise-executor-return": "off"
}
},
{
"files": ["scripts/**/*"],
"env": {
"node": true
},
"rules": {
"no-template-curly-in-string": "off"
}
}
],
Expand All @@ -38,6 +56,8 @@
"no-var": "off",
"func-names": "off",
"consistent-return": "off",
"no-continue": "off",
"class-methods-use-this": "off",
"prefer-rest-params": "off",
"radix": "off",
"prefer-spread": "off",
Expand Down Expand Up @@ -175,7 +195,8 @@
"no-useless-concat": "off",
"quotes": [
"error",
"double"
"double",
{ "avoidEscape": true }
],
"no-console": [
"off"
Expand Down
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ updates:
open-pull-requests-limit: 10
target-branch: staging
versioning-strategy: increase-if-necessary
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: monthly
target-branch: staging
36 changes: 36 additions & 0 deletions .github/workflows/js_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: JS checks
on:
pull_request:
push:
branches: [master, staging, master-np, staging-np]
workflow_dispatch:
permissions:
contents: read
jobs:
checks:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [22, 24]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci --ignore-scripts
- name: Lint
run: npx eslint .
- name: Type check Countly.d.ts
run: npx tsc -p tsconfig.types.json
- name: Unit tests
run: npx jest
- name: Generate and test the no-push package
if: hashFiles('scripts/generate-no-push.js') != ''
run: |
node scripts/generate-no-push.js "$RUNNER_TEMP/no-push"
cd "$RUNNER_TEMP/no-push"
npm ci --ignore-scripts
npx tsc -p tsconfig.types.json
npx jest
8 changes: 5 additions & 3 deletions .github/workflows/release_notice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -14,7 +16,7 @@ jobs:
run: echo "$GITHUB_CONTEXT"
- name: Send custom JSON data to Slack workflow
id: slack
uses: slackapi/slack-github-action@v1.23.0
uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844 # v1.23.0
with:
# This data can be any valid JSON from a previous step in the GitHub Action
payload: |
Expand All @@ -28,12 +30,12 @@ jobs:
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_RELEASE }}
- name: Send custom JSON data to Discord
uses: sarisia/actions-status-discord@v1.13.0
uses: sarisia/actions-status-discord@9904e3130b8905d5b973df25623f17672dcb3466 # v1.13.0
with:
webhook: ${{ secrets.DISCORD_WEBHOOK_URL }}
nodetail: true
title: New ${{ github.repository }} version ${{ github.event.release.tag_name }} published by ${{ github.actor }}
description: |
Release URL: ${{ github.event.release.html_url }}
Click [here](https://github.com/Countly/countly-server/blob/master/CHANGELOG.md) to view the change log.
Click [here](${{ github.server_url }}/${{ github.repository }}/blob/${{ github.event.release.tag_name }}/CHANGELOG.md) to view the change log.
`${{ github.event.release.body }}`
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ android/.classpath
countly-sdk-react-native-bridge-*.tgz
example/AwesomeProject
coverage/
package-lock.json
example/AwesomeProject/*
example/ExpoProject/*
example/ExpoProject/*
hs_err_pid*.log
replay_pid*.log
12 changes: 10 additions & 2 deletions .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,19 @@
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"quoteProps": "preserve",
"singleQuote": true,
"singleQuote": false,
"semi": true,
"printWidth": 300,
"useTabs": false,
"tabWidth": 4,
"trailingComma": "es5",
"endOfLine": "lf"
"endOfLine": "lf",
"overrides": [
{
"files": "__tests__/**",
"options": {
"singleQuote": true
}
}
]
}
64 changes: 0 additions & 64 deletions .travis.yml

This file was deleted.

Loading
Loading