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
47 changes: 47 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Tests

on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v4

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Start WireMock
run: |
. tests/resources/wiremock-config.env
docker run -d --rm \
-p $WIREMOCK_PORT:8080 \
-v $WIREMOCK_ROOT_DIR:/home/wiremock/mappings \
--name wiremock \
$WIREMOCK_IMAGE

- name: Copy test env
run: cp .env.test.dist .env.test

- name: Lint
run: npx eslint .

- name: Type check
run: npx tsc --noEmit

- name: Run tests
run: npm test
24 changes: 22 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,32 @@
# Build / dependencies
/node_modules
/target
/dist
/coverage
.next/

# IDE
/.idea
/.fleet
/.vscode
/.netbeans
/node_modules
/target

# Editor swap files
*.swp
*.swo
*~

# OS
.DS_Store
Thumbs.db

# Environment / credentials
.env
.env.local
.env.backup
.env.test
.env.production
.env.development

# Lock file (intentional — repo policy)
package-lock.json
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The MIT License

Copyright (c) 2003-present airSlate Inc. [LICENSE](https://github.com/signnow/SignNowNodeSDK/blob/master/LICENSE.md)
Copyright (c) 2003-present SignNow

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@
},
"./api/embeddedEditor": {
"require": "./dist/api/embeddedEditor/index.js",
"imoport": "./dist/api/embeddedEditor/index.js",
"import": "./dist/api/embeddedEditor/index.js",
"types": "./dist/api/embeddedEditor/index.d.ts"
},
"./api/embeddedGroupInvite": {
"require": "./dist/api/embeddedGroupInvite/index.js",
"imoport": "./dist/api/embeddedGroupInvite/index.js",
"import": "./dist/api/embeddedGroupInvite/index.js",
"types": "./dist/api/embeddedGroupInvite/index.d.ts"
},
"./api/embeddedInvite": {
"require": "./dist/api/embeddedInvite/index.js",
"impoort": "./dist/api/embeddedInvite/index.js",
"import": "./dist/api/embeddedInvite/index.js",
"types": "./dist/api/embeddedInvite/index.d.ts"
},
"./api/embeddedSending": {
Expand Down
Loading