diff --git a/.gitea/workflows/gitea-ci.yaml b/.gitea/workflows/gitea-ci.yaml index 47e355c..1d442e3 100644 --- a/.gitea/workflows/gitea-ci.yaml +++ b/.gitea/workflows/gitea-ci.yaml @@ -1,25 +1,18 @@ -namespace TestProject1 -{ - public class Tests - { - private MyMath _myMath; +name: Go Checks +run-name: Go Checks +on: [push] - [SetUp] - public void Setup() - { - _myMath = new MyMath(); - } +jobs: + checks: + name: checks + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + check-latest: true + cache: true - [TestCase(100000.0, 10.1, 100010.1)] - [TestCase(-100000.0, -10.1, -100010.1)] - [TestCase(0.0, 0.0, 0.0)] - [Description("Verifies that the MyMath.Add() function works correctly with real numbers.")] - public void MyMath_Add_RealNumber(double number1, double number2, double expected) - { - // Act - double result = _myMath.Add(number1, number2); - // Assert - Assert.That(expected, Is.EqualTo(result), $"Not Correct: ({number1}) + ({number2})"); - } - } -} \ No newline at end of file + - name: Install govulncheck \ No newline at end of file