Skip to content

Commit

Permalink
fix: add testing code to the transformation action (#29)
Browse files Browse the repository at this point in the history
* fix: refactored the code and added tests for critical path
  • Loading branch information
abhimanyubabbar authored Sep 24, 2024
1 parent fa75ca1 commit 12fc9a5
Show file tree
Hide file tree
Showing 17 changed files with 6,334 additions and 974 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/tests.yml
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
8 changes: 8 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
coverage:
status:
project:
default:
informational: true
patch:
default:
informational: true
Loading

0 comments on commit 12fc9a5

Please sign in to comment.