-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Julius Osokinas
committed
May 10, 2021
1 parent
668a891
commit ff7983e
Showing
16 changed files
with
16,095 additions
and
8,840 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Test | ||
|
||
on: push | ||
|
||
jobs: | ||
unit-tests: | ||
name: Run unit tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Git repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v2.1.4 | ||
with: | ||
node-version: 14 | ||
|
||
- name: Install Node dependencies | ||
run: npm ci --no-audit --no-optional | ||
|
||
- name: Test packages | ||
run: npm run test | ||
|
||
- name: Keep artifacts | ||
uses: actions/upload-artifact@v2 | ||
if: always() | ||
with: | ||
name: coverage | ||
path: coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// https://jestjs.io/docs/en/configuration.html | ||
|
||
export default { | ||
collectCoverageFrom: [ | ||
'**/*.ts', | ||
'!**/dist/**/*', // distribution files | ||
'!**/index.ts', // index files | ||
], | ||
coverageDirectory: '../coverage', | ||
coverageThreshold: { | ||
global: { | ||
branches: 100, | ||
functions: 100, | ||
lines: 100, | ||
statements: 100, | ||
}, | ||
}, | ||
preset: 'ts-jest', | ||
rootDir: 'packages', | ||
testEnvironment: 'jsdom', | ||
testMatch: ['**/*.spec.ts'], | ||
verbose: true, | ||
}; |
Oops, something went wrong.