From 7fac536c21af9d43d8c0766ab8b615191f436f79 Mon Sep 17 00:00:00 2001 From: Roger KN <62483740+RogerKenichi@users.noreply.github.com> Date: Fri, 6 Jun 2025 15:44:57 -0300 Subject: [PATCH] infra: Created workflow for github actions - Changed build badge of README.md to follow the workflow.yaml status --- .github/workflows/workflow.yaml | 24 ++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/workflow.yaml diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml new file mode 100644 index 0000000..a6f759d --- /dev/null +++ b/.github/workflows/workflow.yaml @@ -0,0 +1,24 @@ +name: Continuous Integration + +on: [pull_request, push] + +jobs: + continuous-integration: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Using Dotnet 8 + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.0.x' + + - name: Restore dependencies + run: dotnet restore + + - name: Test + run: dotnet test + + - name: Build release + run: dotnet build -c Release \ No newline at end of file diff --git a/README.md b/README.md index d957acf..d954816 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A lightweight, dependency-free, and deterministic simple fixed-point number implementation in C#, which is ideal for physics simulations, multiplayer lockstep games, and other scenarios where floating-point inconsistencies across platforms must be avoided. -![Static Badge](https://img.shields.io/badge/build-passing-brightgreen) +![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/RogerKenichi/FixedPointLib/workflow.yaml) ![.NET](https://img.shields.io/badge/.NET-8.0-blue) ![GitHub License](https://img.shields.io/github/license/RogerKenichi/FixedPointLib) ![Last Commit](https://img.shields.io/github/last-commit/RogerKenichi/FixedPointLib)