Bump ws from 7.5.9 to 7.5.10 in /webview-ui #129
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pull request checks | |
| on: | |
| pull_request: | |
| env: | |
| TEST_TIMEOUT: 5m | |
| EXAMPLE_TIMEOUT: 5m | |
| BRANCH: ${{ startsWith(github.head_ref, '') && github.head_ref || github.ref_name }} | |
| jobs: | |
| test: | |
| timeout-minutes: 60 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [macos-latest, ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install extension dependencies | |
| run: yarn run install:all | |
| - name: Build webview | |
| if: matrix.os != 'macos-latest' | |
| run: yarn run build:webview | |
| # TODO: fix this command getting stuck on macos | |
| - name: Build webview | |
| if: matrix.os == 'macos-latest' | |
| uses: nick-fields/retry@v3 | |
| with: | |
| timeout_minutes: 1 | |
| max_attempts: 5 | |
| command: yarn run build:webview | |
| - name: Run tests | |
| uses: coactions/setup-xvfb@v1 | |
| with: | |
| run: yarn test | |
| examples: | |
| name: Build examples | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install asset generation dependencies | |
| run: | | |
| sudo mkdir -p /usr/local/bin | |
| sudo ln -sf /bin/true /usr/local/bin/mandb # no-op to skip man-db triggers | |
| sudo DEBIAN_FRONTEND=noninteractive apt update | |
| sudo DEBIAN_FRONTEND=noninteractive \ | |
| apt install -y --no-install-recommends \ | |
| ffmpeg libnss3 xvfb \ | |
| -o Dpkg::Options::="--path-exclude=/usr/share/man/*" \ | |
| -o Dpkg::Options::="--path-exclude=/usr/share/doc/*" | |
| - name: Install extension dependencies | |
| run: yarn run install:all | |
| - name: Build webview | |
| run: yarn run build:webview | |
| - name: Build extension | |
| run: yarn run compile | |
| - name: Setting global vscode settings | |
| run: cp -r ./out/examples/examples-editor/.vscode ~/.vscode | |
| - name: Generate assets | |
| run: | | |
| chmod +x ./generate-assets.sh | |
| chmod +x ./generate-example-asset.sh | |
| ./generate-assets.sh ./out/examples . | |
| - name: Upload assets | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ env.BRANCH }}-assets | |
| path: | | |
| *.gif | |
| package: | |
| name: Package extension | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install extension dependencies | |
| run: yarn run install:all | |
| - name: Build webview | |
| run: yarn run build:webview | |
| - name: Package extension | |
| run: npx --yes @vscode/vsce package --yarn --githubBranch ${{ env.BRANCH }} | |
| - name: Upload extension | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: code-blocks-${{ env.BRANCH }}.vsix | |
| path: code-blocks-*.vsix |