From 4b680c62a783e495d1460f1cf4b3fa04fb68ffd3 Mon Sep 17 00:00:00 2001 From: Ori A Date: Sun, 13 Oct 2024 17:17:56 +0300 Subject: [PATCH] Add CI workflow (#91) * Add CI workflow * run on any branch * Add name to step * specify version * try version 5.0.x * specif path to solution * specify path to csproj * update version * update version * change ubuntu * Try to use .NET 8 after upgrade * try using /p:EnableWindowsTargeting=true --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..25842bb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: AutoClicker CI + +on: + pull_request: + branches: + - "*" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + - name: Restore dependencies + run: dotnet restore AutoClicker/AutoClicker.csproj /p:EnableWindowsTargeting=true + - name: Build + run: dotnet build --no-restore AutoClicker/AutoClicker.csproj /p:EnableWindowsTargeting=true + - name: Test + run: dotnet test --no-build --verbosity normal AutoClicker/AutoClicker.csproj /p:EnableWindowsTargeting=true