Skip to content

Commit

Permalink
Update test case and & coverage support in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jinalviranii committed Sep 9, 2024
1 parent fc38d1e commit 56b544c
Show file tree
Hide file tree
Showing 14 changed files with 2,277 additions and 40 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/call_test_cases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Run test cases

on: [pull_request, push]

jobs:
run-test-cases:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [
ubuntu-latest,
windows-latest,
macos-latest,
]
node-version: [16.x, 18.x, 20.x]

steps:
- name: Get branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: get_branch

- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install packages and run test cases
run: |
npm install
npm run test
- name: Coveralls (Uploading test report)
if: ${{ steps.get_branch.outputs.branch == 'main' }}
uses: coverallsapp/github-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# fdk-extension-javascript
![GitHub package.json version](https://img.shields.io/github/package-json/v/gofynd/fdk-extension-javascript?style=plastic)
[![Coverage Status](https://coveralls.io/repos/github/gofynd/fdk-extension-javascript/badge.svg)](https://coveralls.io/github/gofynd/fdk-extension-javascript)

- A helper library for extension development on the Fynd Platform.

## Overview
Expand Down
4 changes: 3 additions & 1 deletion lib/storage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
const BaseStorage = require('./base_storage');
const MemoryStorage = require('./memory_storage');
const RedisStorage = require('./redis_storage');
const SQLiteStorage = require('../../lib/storage/sqlite_storage')

module.exports = {
BaseStorage,
MemoryStorage,
RedisStorage
RedisStorage,
SQLiteStorage
};
Loading

0 comments on commit 56b544c

Please sign in to comment.