diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index a005cffd7..2497e28dc 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -12,6 +12,6 @@ [ For visual changes, include screenshots. Screen recordings are particularly helpful, and appreciated! ] -## Testing instructions +## Tests -[ For new or modified features, provide step-by-step testing instructions to validate the intended behavior of the change, including any relevant tests to run. ] +[ What tests were added or updated to ensure the changes work as expected? ] diff --git a/.github/workflows/cla.yaml b/.github/workflows/cla.yaml new file mode 100644 index 000000000..f915854d1 --- /dev/null +++ b/.github/workflows/cla.yaml @@ -0,0 +1,29 @@ +name: "CLA Assistant" +on: + issue_comment: + types: [ created ] + pull_request_target: + types: [ opened, closed, synchronize ] + +permissions: + actions: write + contents: write + pull-requests: write + statuses: write + +jobs: + CLAAssistant: + runs-on: ubuntu-latest + # Only run this workflow on the main repository (continuedev/continue) + if: github.repository == 'continuedev/continue' + steps: + - name: "CLA Assistant" + if: (contains(github.event.comment.body, 'recheck') || contains(github.event.comment.body, 'I have read the CLA Document and I hereby sign the CLA')) || github.event_name == 'pull_request_target' + uses: contributor-assistant/github-action@v2.6.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + path-to-signatures: "signatures/version1/cla.json" + path-to-document: "https://github.com/continuedev/continue/blob/main/docs/docs/CLA.md" + branch: cla-signatures + allowlist: dependabot[bot] \ No newline at end of file diff --git a/.github/workflows/jetbrains-release.yaml b/.github/workflows/jetbrains-release.yaml index d1303995e..8ea3d2ebb 100644 --- a/.github/workflows/jetbrains-release.yaml +++ b/.github/workflows/jetbrains-release.yaml @@ -63,7 +63,7 @@ jobs: - name: Bump version in gradle.properties run: | - cd extensions/intelllij + cd extensions/intellij awk '/pluginVersion=/{split($0,a,"="); split(a[2],b,"."); b[3]+=1; printf "%s=%s.%s.%s\n",a[1],b[1],b[2],b[3];next}1' gradle.properties > tmp && mv tmp gradle.properties rm -rf tmp NEW_VERSION=$(grep 'pluginVersion=' gradle.properties | cut -d'=' -f2) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 29965a305..0c300bf17 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -235,7 +235,7 @@ jobs: - name: Publish to VS Code Marketplace run: | cd extensions/vscode - npx vsce publish --packagePath ../../vsix-artifacts/*.vsix + npx @vscode/vsce publish --packagePath ../../vsix-artifacts/*.vsix env: VSCE_PAT: ${{ secrets.VSCE_TOKEN }} diff --git a/.github/workflows/pr_checks.yaml b/.github/workflows/pr_checks.yaml index c490373a0..eec79f4c6 100644 --- a/.github/workflows/pr_checks.yaml +++ b/.github/workflows/pr_checks.yaml @@ -235,10 +235,11 @@ jobs: cd packages/config-yaml npm run build - - name: Type check + - name: Type check and lint run: | cd gui npx tsc --noEmit + npm run lint binary-checks: needs: [install-root, install-core, install-config-yaml] @@ -670,13 +671,6 @@ jobs: cd extensions/vscode rm -rf e2e/.test-extensions/continue* - - name: Upload e2e test screenshots - if: failure() - uses: actions/upload-artifact@v4 - with: - name: e2e-failure-screenshots - path: extensions/vscode/e2e/storage/screenshots - - name: Sanitize test file name id: sanitize_filename if: always() @@ -685,6 +679,13 @@ jobs: SANITIZED_FILENAME="${FILENAME//\//-}" # Replace / with - using bash parameter expansion echo "sanitized_test_file=${SANITIZED_FILENAME}" >> $GITHUB_OUTPUT + - name: Upload e2e test screenshots + if: failure() + uses: actions/upload-artifact@v4 + with: + name: e2e-failure-screenshots-${{ steps.sanitize_filename.outputs.sanitized_test_file || 'unknown' }}-${{ matrix.command == 'e2e:ci:run-yaml' && 'yaml' || 'json' }} + path: extensions/vscode/e2e/storage/screenshots + - name: Find e2e log file if: always() run: | diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 23ea26bf6..19dafeb41 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -232,7 +232,7 @@ jobs: - name: Publish to VS Code Marketplace run: | cd extensions/vscode - npx vsce publish --pre-release --packagePath ../../vsix-artifacts/*.vsix + npx @vscode/vsce publish --pre-release --packagePath ../../vsix-artifacts/*.vsix env: VSCE_PAT: ${{ secrets.VSCE_TOKEN }} diff --git a/.idea/runConfigurations/config_yaml_tests.xml b/.idea/runConfigurations/config_yaml_tests.xml new file mode 100644 index 000000000..69aaa8bb3 --- /dev/null +++ b/.idea/runConfigurations/config_yaml_tests.xml @@ -0,0 +1,22 @@ + + + + + + + + + + +