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)