-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixes #1 (skos:exactMatch) and add test automation
- Loading branch information
1 parent
a9732f1
commit 1cc8c1b
Showing
6 changed files
with
227 additions
and
96 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,39 @@ | ||
name: Test | ||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
# Run unit tests on windows and linux | ||
runs-on: ${{ matrix.operating-system }} | ||
strategy: | ||
matrix: | ||
operating-system: | ||
- ubuntu-latest | ||
- windows-latest | ||
node-version: | ||
- '18.0' | ||
- 18.x | ||
- '20.0' | ||
- 20.x | ||
- '22.1' | ||
- 22.x | ||
timeout-minutes: 15 | ||
steps: | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Ensure line endings are consistent | ||
run: git config --global core.autocrlf input | ||
- name: Check out repository | ||
uses: actions/checkout@v4.1.7 | ||
- name: Install dependencies and run build scripts | ||
run: npm ci | ||
- name: Run tests | ||
run: npm run test |
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 @@ | ||
module.exports = { | ||
transform: { | ||
'^.+\\.ts$': [ 'ts-jest', { | ||
tsconfig: 'tsconfig.json', | ||
}], | ||
}, | ||
// Only run tests in the unit and integration folders. | ||
// All test files need to have the suffix `.test.ts`. | ||
testRegex: '/test/(unit|integration)/.*\\.test\\.ts$', | ||
moduleFileExtensions: [ | ||
'ts', | ||
'js', | ||
], | ||
testEnvironment: 'node', | ||
collectCoverage: true, | ||
coverageReporters: [ 'text', 'lcov' ], | ||
coveragePathIgnorePatterns: [ | ||
'/dist/', | ||
'/node_modules/', | ||
'/test/', | ||
], | ||
testTimeout: 90000, | ||
}; |
Oops, something went wrong.