diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a7dd7bb --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +on: + push: + branches: + - main + pull_request_target: + branches: + - main + +jobs: + build: + name: Build and Test + strategy: + matrix: + os: [macos-latest, ubuntu-latest, windows-latest] + vscode-version: ['stable', 'insiders'] + vscode-platform: ['desktop'] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: lts/* + - run: npm install + - run: xvfb-run -a npm test + if: runner.os == 'Linux' + - run: npm test + if: runner.os != 'Linux'