Skip to content

sidebar polling, workspace close, and timeouts #949

sidebar polling, workspace close, and timeouts

sidebar polling, workspace close, and timeouts #949

name: Build and Test VSCode extension
on:
push:
branches: '**'
pull_request:
branches: [main]
jobs:
build:
strategy:
fail-fast: false
matrix:
runtime: [ linux, mac ]
# Removing windows as a standard run flavor runtime: [ linux, mac, windows ]
targetVSCode: [previous, latest ]
buildTool: [maven, gradle]
# As Vscode 1.79 and 1.78 are the only support version for current release, running test with only latest,previous
#Enable it in future for multiple releases as applicable targetVSCode: [ previousMinusOne, previous, latest ]
include:
- runtime: linux
os: ubuntu-latest
- runtime: mac
os: macOS-15
# - runtime: windows
# os: windows-latest
name: Test ${{ matrix.runtime }} - ${{ matrix.buildTool }} - ${{ matrix.targetVSCode }}
runs-on: ${{ matrix.os }}
steps:
# Checkout the eclipse plugin repository.
- name: 'Setup: Checkout plugin'
uses: actions/checkout@v3
# Install the required software.
- name: 'Setup: Install required software'
run: bash ./src/test/resources/ci/scripts/setup.sh
# Build the plugin.
- name: 'Build: Build-Package'
run: bash ./src/test/resources/ci/scripts/exec.sh BUILD
# Archive artifacts
- name: Archive artifacts
if: runner.os == 'linux' && matrix.targetVSCode == 'latest' && matrix.buildTool == 'maven'
uses: actions/upload-artifact@v4.3.4
with:
name: liberty-tools-vscode-${{ github.sha }}
path: ./**/*.vsix
if-no-files-found: warn
retention-days: 7
# Run tests for specific build tool
- name: 'Test: Run ${{ matrix.buildTool }} Tests'
run: bash ./src/test/resources/ci/scripts/exec.sh TEST ${{ matrix.targetVSCode }} ${{ matrix.buildTool }}
# Archive screenshots
- name: Archive screenshots
if: always()
uses: actions/upload-artifact@v4.3.4
with:
name: liberty-tools-vscode-${{ matrix.runtime }}-${{ matrix.buildTool }}-${{ matrix.targetVSCode }}-tests-screenshots
path: ./screenshots/${{ matrix.buildTool }}/*.png
if-no-files-found: warn
retention-days: 7