From 487e915d2f9fbcbf50294c2c3917407e81da6ebc Mon Sep 17 00:00:00 2001 From: Russ Cam Date: Thu, 2 May 2024 12:14:32 +1000 Subject: [PATCH] Add moar badges --- .github/workflows/accuracy_report.yml | 8 ++------ .github/workflows/dotnet.yml | 2 +- README.md | 9 ++++++++- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/accuracy_report.yml b/.github/workflows/accuracy_report.yml index 5df90c2..b4811e4 100644 --- a/.github/workflows/accuracy_report.yml +++ b/.github/workflows/accuracy_report.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: jobs: - build: + report: runs-on: ubuntu-latest @@ -14,12 +14,8 @@ jobs: uses: actions/setup-dotnet@v4 with: dotnet-version: 8.0.x - - name: Restore dependencies - run: dotnet restore - name: Build - run: dotnet build --no-restore - - name: Test - run: dotnet test tests/Lingua.AccuracyReport.Tests --no-build --verbosity quiet + run: ./build.sh report - name: Accuracy Report run: | echo "# Lingua Language Accuracy report" >> $GITHUB_STEP_SUMMARY diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 1ffccba..feb80a2 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,4 +1,4 @@ -name: .NET +name: Build on: push: diff --git a/README.md b/README.md index 8a1a73b..c7f6305 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,10 @@ ![lingua](images/logo.png) +[![NuGet Release][nuget image]][nuget url] [![Build Status](https://github.com/russcam/lingua-dotnet/actions/workflows/dotnet.yml/badge.svg)](https://github.com/russcam/lingua-dotnet/actions/workflows/dotnet.yml) [![Accuracy Report](https://github.com/russcam/lingua-dotnet/actions/workflows/accuracy_report.yml/badge.svg)](https://github.com/russcam/lingua-dotnet/actions/workflows/accuracy_report.yml) +[![license badge][license badge]][license url] +[![supported languages][supported languages badge]](#3-which-languages-are-supported) ## 1. What does this library do? Its task is simple: It tells you which language some provided textual data is written in. @@ -128,4 +131,8 @@ Currently, the following 75 languages are supported: - Z - Zulu - +[nuget url]: https://www.nuget.org/packages/Lingua/ +[nuget image]: https://img.shields.io/nuget/v/Lingua.svg +[license badge]: https://img.shields.io/badge/license-Apache%202.0-blue.svg +[license url]: https://www.apache.org/licenses/LICENSE-2.0 +[supported languages badge]: https://img.shields.io/badge/supported%20languages-75-green.svg