Skip to content

Commit c67d520

Browse files
author
Ivan Kudinov
committed
Add tests
1 parent b79d1ee commit c67d520

27 files changed

+2412
-3268
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"root": true,
33
"parser": "@typescript-eslint/parser",
4-
"parserOptions": { "project": "./tsconfig.json" },
4+
"parserOptions": { "project": "./tsconfig.eslint.json" },
55
"env": { "es6": true },
66
"ignorePatterns": ["node_modules", "build", "coverage"],
77
"plugins": ["import", "eslint-comments"],

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
lint:
10+
name: Lint
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 18
20+
cache: 'yarn'
21+
22+
- name: Install dependencies
23+
run: yarn install --frozen-lockfile
24+
25+
- name: Run test:lint
26+
run: yarn test:lint
27+
28+
test:
29+
name: Test
30+
runs-on: ubuntu-latest
31+
needs: lint
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
36+
- name: Setup Node.js
37+
uses: actions/setup-node@v4
38+
with:
39+
node-version: 18
40+
cache: 'yarn'
41+
42+
- name: Install dependencies
43+
run: yarn install --frozen-lockfile
44+
45+
- name: Run tests
46+
run: yarn test
47+
48+

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup Node
1515
uses: actions/setup-node@v3
1616
with:
17-
node-version: 16
17+
node-version: 18
1818
registry-url: https://registry.npmjs.org/
1919
- name: Build package
2020
run: yarn install && yarn build

0 commit comments

Comments
 (0)