diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f5e98bb --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 16.x + - name: Install pnpm + run: npm install -g pnpm@6.35.1 + - name: Install dependencies + run: pnpm install + - name: Run tests + run: xvfb-run -a npm test \ No newline at end of file diff --git a/package.json b/package.json index 9b058b6..0676547 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "description": "", "version": "0.0.1", "engines": { - "vscode": "^1.71.0" + "vscode": "^1.71.0", + "pnpm": "6.35.1" }, "categories": [ "Other" diff --git a/src/test/integration/runTest.ts b/src/test/integration/runTest.ts index 913c073..f4e0469 100644 --- a/src/test/integration/runTest.ts +++ b/src/test/integration/runTest.ts @@ -11,6 +11,7 @@ async function main() { await runTests({ extensionDevelopmentPath, extensionTestsPath, + launchArgs: ["--password-store=basic"], }); } catch (err) { console.error("Failed to run tests", err);