From 9fd77a6743dcc4120fe10979e98831ee64f0e12f Mon Sep 17 00:00:00 2001 From: amithkoujalgi Date: Tue, 11 Mar 2025 00:02:13 +0530 Subject: [PATCH] Add branch trigger for tests and update README with badge Added a trigger to run tests on pushes to the main branch in the GitHub Actions workflow. Also updated the README to include a badge linking to the test workflow for better visibility. --- .github/workflows/run-tests.yml | 4 ++++ README.md | 3 +++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 24a2b01..294e2f5 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -1,6 +1,10 @@ name: Run Unit and Integration Tests on: + push: + branches: + - main + workflow_dispatch: inputs: branch: diff --git a/README.md b/README.md index 5c4daa7..b9e472d 100644 --- a/README.md +++ b/README.md @@ -31,8 +31,11 @@ Find more details on the [website](https://ollama4j.github.io/ollama4j/). ![GitHub last commit](https://img.shields.io/github/last-commit/ollama4j/ollama4j?color=green) [![codecov](https://codecov.io/gh/ollama4j/ollama4j/graph/badge.svg?token=U0TE7BGP8L)](https://codecov.io/gh/ollama4j/ollama4j) + +[![Run Unit and Integration Tests](https://github.com/ollama4j/ollama4j/actions/workflows/run-tests.yml/badge.svg)](https://github.com/ollama4j/ollama4j/actions/workflows/run-tests.yml) ![Build Status](https://github.com/ollama4j/ollama4j/actions/workflows/maven-publish.yml/badge.svg) + [//]: # (![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Follama4j%2Follama4j&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false))