Skip to content

Commit

Permalink
Setup GitHub actions
Browse files Browse the repository at this point in the history
Signed-off-by: Kathryn Kodama <[email protected]>
  • Loading branch information
kathrynkodama committed Apr 27, 2021
1 parent 98848ea commit 733f37f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/mp-starter-vscode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

name: Node.js CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v2
- name: XVFB Setup
if: matrix.os == 'ubuntu-latest'
run: |
export DISPLAY=':99.0'
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 12.x
- run: npm ci
- run: npm run lint
- run: npm test



4 changes: 2 additions & 2 deletions src/test/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ async function main(): Promise<void> {
// The path to test runner
// Passed to --extensionTestsPath
const extensionTestsPath = path.resolve(__dirname, "./suite/index");

// Download VS Code, unzip it and run the integration test
await runTests({ extensionDevelopmentPath, extensionTestsPath });
await runTests({ extensionDevelopmentPath, extensionTestsPath, launchArgs: ["--no-sandbox"] });
} catch (err) {
console.error("Failed to run tests");
process.exit(1);
Expand Down

0 comments on commit 733f37f

Please sign in to comment.