Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.integration.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
OPEN_ROUTER_API_KEY=sk-or-v1-...
35 changes: 27 additions & 8 deletions .github/workflows/code-qa.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Code QA Roo Code

on:
workflow_dispatch:
push:
branches: [main]
pull_request:
Expand All @@ -13,33 +14,51 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'

- name: Install dependencies
run: npm run install:all

- name: Compile TypeScript
- name: Compile
run: npm run compile
- name: Check types
run: npm run check-types
- name: Lint
run: npm run lint

unit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'

- name: Install dependencies
run: npm run install:all

- name: Run unit tests
run: npm test
run: npm test

integration-test:
strategy:
matrix:
os: [macos-latest] # ubuntu-latest, windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm run install:all
- run: xvfb-run -a npm test:integration
if: runner.os == 'Linux'
- run: npm test:integration
if: runner.os != 'Linux'
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
out
dist
out
out-integration
node_modules
coverage/

Expand All @@ -18,3 +19,6 @@ roo-cline-*.vsix

# Docs
docs/_site/

# Dotenv
.env.integration
9 changes: 7 additions & 2 deletions .vscode-test.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
/**
* See: https://code.visualstudio.com/api/working-with-extensions/testing-extension
*/

import { defineConfig } from '@vscode/test-cli';

export default defineConfig({
files: 'src/test/extension.test.ts',
label: 'integrationTest',
files: 'out-integration/test/**/*.test.js',
workspaceFolder: '.',
mocha: {
ui: 'tdd',
timeout: 60000,
ui: 'tdd'
},
launchArgs: [
'--enable-proposed-api=RooVeterinaryInc.roo-cline',
Expand Down
27 changes: 27 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
description = "Roo Code development environment";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
};

outputs = { self, nixpkgs, ... }: let
systems = [ "aarch64-darwin" "x86_64-linux" ];

forAllSystems = nixpkgs.lib.genAttrs systems;

mkDevShell = system: let
pkgs = import nixpkgs { inherit system; };
in pkgs.mkShell {
name = "roo-code";

packages = with pkgs; [
zsh
nodejs_18
corepack_18
];

shellHook = ''
exec zsh
'';
};
in {
devShells = forAllSystems (system: {
default = mkDevShell system;
});
};
}
176 changes: 175 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading