Skip to content

Commit

Permalink
Merge pull request #23 from cashfree/3.0.5-integration-tests
Browse files Browse the repository at this point in the history
Added Github Action to run tests
  • Loading branch information
suhas-cashfree authored Dec 12, 2023
2 parents 2c070bb + 5d6062f commit c015138
Show file tree
Hide file tree
Showing 26 changed files with 3,426 additions and 840 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pkg-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Run Tests

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.18'

- name: Build
run: go build -v ./...

- name: Test
run: clientid=$PG_CLIENT_ID clientsecret=$PG_CLIENT_SECRET go test -race -covermode atomic -coverprofile=covprofile ./...
env:
PG_CLIENT_ID: ${{ secrets.CLIENTID }}
PG_CLIENT_SECRET: ${{ secrets.CLIENTSECRET }}
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.TOKEN_GITHUB }}
run: goveralls -coverprofile=covprofile
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ _testmain.go
*.prof
api/openapi.yaml
.DS_STORE
*/.DS_STORE
*/.DS_STORE
c.out
test/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Cashfree PG Go SDK
![GitHub](https://img.shields.io/github/license/cashfree/cashfree-pg-sdk-go) ![Discord](https://img.shields.io/discord/931125665669972018?label=discord) ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/cashfree/cashfree-pg-sdk-go/main) ![GitHub release (with filter)](https://img.shields.io/github/v/release/cashfree/cashfree-pg-sdk-go?label=latest) ![GitHub forks](https://img.shields.io/github/forks/cashfree/cashfree-pg-sdk-go)
![GitHub](https://img.shields.io/github/license/cashfree/cashfree-pg) ![Discord](https://img.shields.io/discord/931125665669972018?label=discord) ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/cashfree/cashfree-pg/main) ![GitHub release (with filter)](https://img.shields.io/github/v/release/cashfree/cashfree-pg?label=latest) ![GitHub forks](https://img.shields.io/github/forks/cashfree/cashfree-pg) [![Coverage Status](https://coveralls.io/repos/github/cashfree/cashfree-pg/badge.svg?branch=main)](https://coveralls.io/github/cashfree/cashfree-pg?branch=main)

The Cashfree PG Go SDK offers a convenient solution to access [Cashfree PG APIs](https://docs.cashfree.com/reference/pg-new-apis-endpoint) from a server-side Go applications.

Expand Down
Loading

0 comments on commit c015138

Please sign in to comment.