Skip to content

Merge pull request #56 from cashfree/4.0.7 #115

Merge pull request #56 from cashfree/4.0.7

Merge pull request #56 from cashfree/4.0.7 #115

Workflow file for this run

name: Trigger Tests on Pull Request.
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '21.x'
- name: Install dependencies
run: npm install && npm install coveralls --save-dev
- name: Run Tests
run: CLIENT_ID=$PG_CLIENT_ID SECRET_KEY=$PG_CLIENT_SECRET npm test && cd coverage && ls && cd .. && cat coverage/lcov.info | npx coveralls
env:
PG_CLIENT_ID: ${{ secrets.XCLIENTIDSANDBOX }}
PG_CLIENT_SECRET: ${{ secrets.XCLIENTSECRETSANDBOX }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}