diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0b6a9c6 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: Build Solution + +on: + push: + branches: [ main, develop ] + pull_request: + branches: [ main, develop ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v6.0.2 + + - name: Setup .NET + uses: actions/setup-dotnet@v5.2.0 + with: + dotnet-version: '8.x' + + - name: Restore NuGet packages + run: dotnet restore src/Ocl2CSharp.sln + + - name: Build solution + run: dotnet build src/Ocl2CSharp.sln --configuration Release --no-restore + + + \ No newline at end of file diff --git a/prompts/agent.md b/prompts/agent.md index de28cb5..8e15ad2 100644 --- a/prompts/agent.md +++ b/prompts/agent.md @@ -9,3 +9,10 @@ The idea is that you create the functionality that gets a OCL string, converts i - Tests should be added for some trivial cases - A CLI should be added added for further testing +## Execution Permissions + +- You are allowed to use terminal commands for validation and verification. +- After code changes, run `dotnet restore src/Ocl2CSharp.sln` and `dotnet build src/Ocl2CSharp.sln --configuration Release`. +- If tests exist, run them and report failures clearly. +- you are allowed to trigger build.yml to validate if the changes will pass in the pr +