Skip to content

Commit

Permalink
feat: GitHub actions CI (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
meniRoy authored Aug 17, 2023
1 parent c799eed commit bb8b233
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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 [email protected]
- name: Install dependencies
run: pnpm install
- name: Run tests
run: xvfb-run -a npm test
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"description": "",
"version": "0.0.1",
"engines": {
"vscode": "^1.71.0"
"vscode": "^1.71.0",
"pnpm": "6.35.1"
},
"categories": [
"Other"
Expand Down
1 change: 1 addition & 0 deletions src/test/integration/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ async function main() {
await runTests({
extensionDevelopmentPath,
extensionTestsPath,
launchArgs: ["--password-store=basic"],
});
} catch (err) {
console.error("Failed to run tests", err);
Expand Down

0 comments on commit bb8b233

Please sign in to comment.