From d118227863cd2da76366d88da5bcde5080e8fb56 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 20 Sep 2025 08:43:16 +0000 Subject: [PATCH 1/5] Initial plan From 277838eb14967cf94449442d09631331e327a68b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 20 Sep 2025 08:48:58 +0000 Subject: [PATCH 2/5] Create Copilot setup workflow with Node.js and .NET environment Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com> --- .github/workflows/copilot-setup-steps.yml | 51 +++++++++++++++++++++++ package-lock.json | 16 +++++++ package.json | 11 +++++ 3 files changed, 78 insertions(+) create mode 100644 .github/workflows/copilot-setup-steps.yml create mode 100644 package-lock.json create mode 100644 package.json diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml new file mode 100644 index 0000000..cdbc345 --- /dev/null +++ b/.github/workflows/copilot-setup-steps.yml @@ -0,0 +1,51 @@ +name: Copilot Setup Steps + +on: + push: + paths: + - '.github/workflows/copilot-setup-steps.yml' + pull_request: + paths: + - '.github/workflows/copilot-setup-steps.yml' + workflow_dispatch: + +defaults: + run: + shell: pwsh + +jobs: + copilot-setup-steps: + name: copilot-setup-steps + runs-on: ubuntu-latest + + permissions: + contents: read + + steps: + - name: Checkout code + uses: actions/checkout@v5 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + + - name: Install JavaScript dependencies + run: npm ci + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: | + 3.1.x + 6.x + + - name: Restore .NET dependencies + run: dotnet restore + + - name: Setup Copilot environment + run: | + echo "Setting up Copilot-specific environment variables..." + echo "COPILOT_SETUP_COMPLETE=true" >> $env:GITHUB_ENV + echo "Copilot environment setup completed" \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..8ff0e78 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,16 @@ +{ + "name": "testtools-console-copilot", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "testtools-console-copilot", + "version": "1.0.0", + "devDependencies": {}, + "engines": { + "node": ">=20.0.0" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..0df26b6 --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "name": "testtools-console-copilot", + "version": "1.0.0", + "description": "JavaScript dependencies for GitHub Copilot environment setup", + "private": true, + "scripts": {}, + "devDependencies": {}, + "engines": { + "node": ">=20.0.0" + } +} \ No newline at end of file From bafe2f11fa5fc9a9079bc7b43de1c12494ce1f29 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 20 Sep 2025 08:56:45 +0000 Subject: [PATCH 3/5] Remove unnecessary Node.js setup, keep only .NET environment for Copilot Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com> --- .github/workflows/copilot-setup-steps.yml | 9 --------- package-lock.json | 16 ---------------- package.json | 11 ----------- 3 files changed, 36 deletions(-) delete mode 100644 package-lock.json delete mode 100644 package.json diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index cdbc345..d3c8015 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -25,15 +25,6 @@ jobs: - name: Checkout code uses: actions/checkout@v5 - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - cache: 'npm' - - - name: Install JavaScript dependencies - run: npm ci - - name: Setup .NET uses: actions/setup-dotnet@v4 with: diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 8ff0e78..0000000 --- a/package-lock.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "testtools-console-copilot", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "testtools-console-copilot", - "version": "1.0.0", - "devDependencies": {}, - "engines": { - "node": ">=20.0.0" - } - } - } -} diff --git a/package.json b/package.json deleted file mode 100644 index 0df26b6..0000000 --- a/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "testtools-console-copilot", - "version": "1.0.0", - "description": "JavaScript dependencies for GitHub Copilot environment setup", - "private": true, - "scripts": {}, - "devDependencies": {}, - "engines": { - "node": ">=20.0.0" - } -} \ No newline at end of file From aeefe543cad54f9dd5cc930e133db7e5763d9a60 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 20 Sep 2025 09:05:41 +0000 Subject: [PATCH 4/5] Add build step and create reusable .NET setup action Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com> --- .github/actions/setup-dotnet-build/action.yml | 33 +++++++++++++++++++ .github/workflows/build-and-test.yml | 12 ++----- .github/workflows/copilot-setup-steps.yml | 11 ++----- 3 files changed, 38 insertions(+), 18 deletions(-) create mode 100644 .github/actions/setup-dotnet-build/action.yml diff --git a/.github/actions/setup-dotnet-build/action.yml b/.github/actions/setup-dotnet-build/action.yml new file mode 100644 index 0000000..c428223 --- /dev/null +++ b/.github/actions/setup-dotnet-build/action.yml @@ -0,0 +1,33 @@ +name: 'Setup .NET and Build' +description: 'Sets up .NET environment, restores dependencies, and builds the project' +inputs: + dotnet-version: + description: '.NET versions to install' + required: false + default: | + 3.1.x + 6.x + configuration: + description: 'Build configuration' + required: false + default: 'Release' + build-args: + description: 'Additional build arguments' + required: false + default: '-p:ContinuousIntegrationBuild=True --no-restore' + +runs: + using: 'composite' + steps: + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: ${{ inputs.dotnet-version }} + + - name: Restore dependencies + run: dotnet restore + shell: pwsh + + - name: Build + run: dotnet build --configuration ${{ inputs.configuration }} ${{ inputs.build-args }} + shell: pwsh \ No newline at end of file diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 25ae520..ebe46b2 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -20,16 +20,8 @@ jobs: os: [ubuntu-latest, windows-latest, macOS-latest] steps: - uses: actions/checkout@v4 - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: | - 3.1.x - 6.x - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build -p:ContinuousIntegrationBuild=True --no-restore --configuration Release + - name: Setup .NET and Build + uses: ./.github/actions/setup-dotnet-build - name: Test run: dotnet test --no-build --configuration Release --verbosity normal diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index d3c8015..bc1fd3a 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -25,15 +25,10 @@ jobs: - name: Checkout code uses: actions/checkout@v5 - - name: Setup .NET - uses: actions/setup-dotnet@v4 + - name: Setup .NET and Build + uses: ./.github/actions/setup-dotnet-build with: - dotnet-version: | - 3.1.x - 6.x - - - name: Restore .NET dependencies - run: dotnet restore + configuration: 'Release' - name: Setup Copilot environment run: | From c99c7d1ed63fff02c8ee72df7505a3a85836370d Mon Sep 17 00:00:00 2001 From: Benjamin Michaelis Date: Sat, 20 Sep 2025 02:16:08 -0700 Subject: [PATCH 5/5] Update copilot-setup-steps.yml --- .github/workflows/copilot-setup-steps.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index bc1fd3a..00a894b 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -28,7 +28,7 @@ jobs: - name: Setup .NET and Build uses: ./.github/actions/setup-dotnet-build with: - configuration: 'Release' + configuration: 'Debug' - name: Setup Copilot environment run: |