Update .gitea/workflows/gitea-ci.yaml
Some checks failed
Go Checks / checks (push) Failing after 1s

This commit is contained in:
Martin Cholewa 2025-01-20 15:30:03 +01:00
parent c9c6729c47
commit 7ac8469186

View File

@ -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})");
}
}
}
- name: Install govulncheck