-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add testing code to the transformation action (#29)
* fix: refactored the code and added tests for critical path
- Loading branch information
1 parent
fa75ca1
commit 12fc9a5
Showing
17 changed files
with
6,334 additions
and
974 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,43 @@ | ||
name: Main Branch PR Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- "release/*" | ||
pull_request: | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
main-branch-tests: | ||
name: Run Tests on Main Branch PR | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Check Current Working Directory | ||
run: | | ||
pwd | ||
working-directory: . | ||
|
||
- name: Set Node 20 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install Node.js Dependencies | ||
run: npm ci | ||
working-directory: . | ||
|
||
- name: Run Tests | ||
run: npm test | ||
working-directory: . | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
verbose: true |
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,8 @@ | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
informational: true | ||
patch: | ||
default: | ||
informational: true |
Oops, something went wrong.