Skip to content

Commit 334e295

Browse files
authored
First development (#5)
* Added make help commands * minor changes
1 parent 2eeca84 commit 334e295

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/go.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,15 @@ jobs:
2222
go-version: '1.21'
2323

2424
- name: Install dependencies
25-
run: go get ./...
25+
run: go test -coverprofile=coverage.txt ./...
2626

2727
- name: Build
2828
run: go build -v ./...
2929

3030
- name: Test
3131
run: go test -v ./...
32+
33+
- name: Upload coverage reports to Codecov
34+
uses: codecov/codecov-action@v5
35+
with:
36+
token: ${{ secrets.CODECOV_TOKEN }}
File renamed without changes.

package/database/database.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func NewDatabase(dbCnfg DBConfig) (*Database, error) {
7676

7777
// Close gracefully shuts down the database connection
7878
func (d *Database) Close() {
79-
d.DB.Close()
79+
_ = d.DB.Close()
8080
}
8181

8282
// getDSN builds the Data Source Name based on the driver

0 commit comments

Comments
 (0)