From fac24b162b8f1384b198a1fbf92dea6afc0050d0 Mon Sep 17 00:00:00 2001 From: Springcomp Date: Sun, 1 Mar 2026 10:29:11 +0100 Subject: [PATCH] [gh-actions] Created build workflow. --- .github/workflows/build.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..9328307 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,34 @@ +# GitHub Actions workflow for .NET build, test, and compliance +name: ๐Ÿ”จ .NET Build and Compliance + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: windows-latest + steps: + - name: ๐Ÿ“ฅ Checkout code + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: โš™๏ธ Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: "6.0.x" + + - name: ๐Ÿ“ฆ Restore dependencies + run: dotnet restore jmespath.net.sln + + - name: ๐Ÿ”จ Build + run: dotnet build jmespath.net.sln --configuration Release --no-restore + + - name: ๐Ÿงช Run Unit Tests + run: dotnet test tests/jmespathnet.tests/jmespathnet.tests.csproj --no-build --verbosity normal + + - name: โœ… Run Compliance Tests + run: dotnet run --project tools/jmespathnet.compliance/jpnet.csproj --no-build