Skip to content

Commit

Permalink
Add badges
Browse files Browse the repository at this point in the history
  • Loading branch information
kmesiab committed Dec 23, 2024
1 parent 8cf9aa9 commit c913e42
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 45 deletions.
41 changes: 0 additions & 41 deletions .github/go-test.yml

This file was deleted.

File renamed without changes.
3 changes: 1 addition & 2 deletions .github/go-lint.yml → .github/workflows/go-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ jobs:

- name: 🕵️‍♂️ Run GolangCI-Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54

30 changes: 30 additions & 0 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test

defaults:
run:
shell: bash

on:
push:
branches:
- '**'

jobs:

build_go:
name: "🏗 Compile"

runs-on: ubuntu-latest
steps:
- name: 🛒 Checkout Code
uses: actions/checkout@v3

- name: 🚀 Set up Go
uses: actions/[email protected]
with:
go-version: '1.23'
cache: true
check-latest: true

- name: 🧪 Test
run: go test -v ./...
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# 🤑 Chime AI 🤖

![Golang](https://img.shields.io/badge/Go-00add8.svg?labelColor=171e21&style=for-the-badge&logo=go)

![Build](https://github.com/kmesiab/chime-ai/actions/workflows/go-build.yml/badge.svg)
![Lint](https://github.com/kmesiab/chime-ai/actions/workflows/go-lint.yml/badge.svg)
![Test](https://github.com/kmesiab/chime-ai/actions/workflows/go-test.yml/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/kmesiab/chime-ai)](https://goreportcard.com/report/github.com/kmesiab/equilibria)

**Import your Chime bank statements in PDF format, then chat about them with AI.**

_Note: This is a hacky personal project. Don't rely on this for important things..._
Expand Down
4 changes: 2 additions & 2 deletions database/repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ func TestExecuteRawQuery_NoResults(t *testing.T) {
args := []interface{}{"Nonexistent Description"}

result, err := repo.ExecuteRawQuery(query, args...)
if err != nil {
t.Errorf("unexpected error: %v", err)
if err == nil {
t.Errorf("expected error but got none")
}

// Assert that the result is an empty slice
Expand Down

0 comments on commit c913e42

Please sign in to comment.