diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8a6697d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: [master, main] + # Runs on all pull requests once this workflow exists on master (default branch). + # Stacked PRs whose base branch predates this file may need master merged in + # before checks appear on downstream PRs (#5–#9). + pull_request: + +permissions: + contents: read + +jobs: + build-test: + runs-on: windows-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 10.0.x + + - name: Build + run: dotnet build QuickShell.sln -c Release -p:Platform=x64 --verbosity minimal + shell: pwsh + + - name: Test + run: dotnet test QuickShell.Core.Tests/QuickShell.Core.Tests.csproj -c Release -p:Platform=x64 --no-build --verbosity minimal + shell: pwsh