Skip to content

Commit

Permalink
Merge 704acb7 into 4c82363
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayMakhonin committed Jun 26, 2022
2 parents 4c82363 + 704acb7 commit 1e6f91f
Show file tree
Hide file tree
Showing 96 changed files with 6,626 additions and 2,843 deletions.
13 changes: 11 additions & 2 deletions .eslintignore
@@ -1,2 +1,11 @@
coverage
node_modules
# copy of .gitignore
/dist/**/test/**
/dist/**/*.test.*
/tmp/
/node_modules/

# additional rules
/.idea/
/.github/
/dist/
/docs/
8 changes: 0 additions & 8 deletions .eslintrc

This file was deleted.

7 changes: 7 additions & 0 deletions .eslintrc.cjs
@@ -0,0 +1,7 @@
'use strict'

module.exports = {
'extends': [
'pro',
],
}
1 change: 1 addition & 0 deletions .gitattributes
@@ -0,0 +1 @@
* text=auto eol=lf
79 changes: 79 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,79 @@
name: Test
'on':
push:
branches:
- 'master'
pull_request:
branches:
- 'master'

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 14.x]

steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Check secrets
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
node -e "o=['COVERALLS_REPO_TOKEN'].filter(o=>!process.env[o]);o.length&&(console.log('You should set env variables: '+o.join(', ')),process.exit(1))"
- uses: actions/checkout@v2

# from: https://github.com/pnpm/action-setup
- name: Install pnpm
id: pnpm-install
uses: pnpm/action-setup@v2.1.0
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: |
pnpm install --frozen-lockfile
- name: Build
shell: bash
run: |
pnpm run build
- name: Lint
shell: bash
run: |
pnpm run audit
pnpm run lint
- name: Mocha tests
shell: bash
run: |
pnpm run test:mocha:ci
- name: Coveralls
if: ${{ matrix.node-version == '18.x' }}
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
shell: bash
run: |
pnpm add coveralls -D
pnpm run coveralls
17 changes: 11 additions & 6 deletions .gitignore
@@ -1,7 +1,12 @@
/build
node_modules
/.idea
*.bak
*.cmd
/dist/**/test/**
/dist/**/*.test.*
/tmp/
/node_modules/
/*.log
/build/

/.eslintcache
/package-lock.json
tmp
/yarn.lock
/yarn-error.log
/.pnpm-debug.log
9 changes: 9 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/jsLinters/eslint.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions .idea/rdtsc.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations/build.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations/coverage_check.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations/coveralls.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/runConfigurations/karma.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations/lint.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations/lint_fix.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations/lint_wizard.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/runConfigurations/mocha.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/runConfigurations/mocha_perf.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/runConfigurations/mocha_watch.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations/prepublishOnly.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1e6f91f

Please sign in to comment.