Skip to content

Commit

Permalink
chore: add tests to increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamsouravjha authored Oct 18, 2024
2 parents c67dd7e + 53621c6 commit 65a853d
Show file tree
Hide file tree
Showing 2 changed files with 680 additions and 93 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'

- name: Cache Go modules
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install dependencies
run: |
go mod download # Download modules
- name: Run tests
run: go test -v ./...
Loading

0 comments on commit 65a853d

Please sign in to comment.