vscode-textbook / vscode-extension-ci

プログラマーのためのVisual Studio Codeの教科書 (初版) - Chapter 13 VS Code拡張機能 CIテストのレポジトリ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VS Code拡張機能のCIテスト用リポジトリ

これはプログラマーのためのVisual Studio Codeの教科書 (初版) - Chapter13 のVS Code拡張機能の継続的インテーグレーション(CI)テスト用のリポジトリです。

CI Status Badge
GitHub Actions GitHub Actions

GitHub Actions Workflow

.github/workflows/vscode.yml

name: VS Code extension CI

on:
  push:
    branches:
      - master

jobs:
  build:
    runs-on: ${{ matrix.os }}

    strategy:
      max-parallel: 3
      matrix:
        os: [macos-latest, windows-latest, ubuntu-latest]
        node-version: [16]

    steps:
    - uses: actions/checkout@v3
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v3
      with:
        node-version: ${{ matrix.node-version }}
    - name: Install dependencies
      run: npm install

    - name: Start xvfb only if it's Linux
      if: startsWith(matrix.os,'ubuntu')
      run: |
        /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
        echo ">>> Started xvfb"
      shell: bash
    - name: npm install, build, and test
      run: |
        npm test
      env:
        DISPLAY: ':99.0' # Only necessary for linux tests

Other CI tools

You can setup CI for VS Code extension with other CI tools very easily. Here is a sample CI configuration in Azure Pipelines:

About

プログラマーのためのVisual Studio Codeの教科書 (初版) - Chapter 13 VS Code拡張機能 CIテストのレポジトリ

License:MIT License


Languages

Language:TypeScript 100.0%