generated from finos-labs/project-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #600 from Thels/cli-integration-tests
Initial attempt at some basic end to end tests for the CLI.
- Loading branch information
Showing
21 changed files
with
5,162 additions
and
9,000 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
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: CLI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "main" | ||
paths: | ||
- "cli/**" | ||
- "shared/**" | ||
push: | ||
branches: | ||
- "main" | ||
paths: | ||
- "cli/**" | ||
- "shared/**" | ||
|
||
jobs: | ||
cli: | ||
name: Build, Test, and Lint CLI Module | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Ensure full PR checkout | ||
- name: Checkout PR Branch | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: v20 | ||
|
||
- name: Install workspace | ||
run: npm ci | ||
|
||
- name: Build workspace | ||
run: npm run build | ||
|
||
- name: Run tests for CLI | ||
run: npm run test --workspace=cli |
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
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
/** @type {import('ts-jest').JestConfigWithTsJest} */ | ||
export default { | ||
module.exports = { | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
testMatch: ['<rootDir>/src/**/*.spec.ts'], | ||
moduleNameMapper: { | ||
'^(.+)\\.js$': '$1' | ||
} | ||
testMatch: ['./**/*.spec.ts'], | ||
transformIgnorePatterns: [ | ||
"<rootDir>/node_modules/(?!calm-shared)", | ||
'^.+\\.js$' | ||
], | ||
rootDir: '.', | ||
watchPathIgnorePatterns: ['<rootDir>/../shared/'] | ||
}; |
Oops, something went wrong.