Skip to content

Upgrade embedded Kaoto to 1.2.x #558

Upgrade embedded Kaoto to 1.2.x

Upgrade embedded Kaoto to 1.2.x #558

Workflow file for this run

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
name: Build with released version of Kaoto
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- name: yarn
run: yarn --network-timeout 1000000
- name: yarn build:dev
run: yarn build:dev
- name: yarn build:prod
run: yarn build:prod
- name: vsix package
run: yarn vsce package --no-dependencies --yarn
- name: Run UI Tests on Linux
run: xvfb-run -a yarn run test:it:with-prebuilt-vsix
if: ${{ matrix.os == 'ubuntu-latest' }}
- name: Run UI Tests on Other OSes than Linux
run: yarn run test:it:with-prebuilt-vsix
if: ${{ matrix.os != 'ubuntu-latest' }}
- name: Archive vsix
uses: actions/upload-artifact@v3
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
name: 'vscode-kaoto-vsix'
path: '*.vsix'
- name: Store VS Code logs
uses: actions/upload-artifact@v3
if: always()
with:
name: vscode-logs-${{ matrix.os }}
path: test-resources/settings/logs
- name: Store VS Code UI Tests screenshots on failure
uses: actions/upload-artifact@v3
if: failure()
with:
name: ui-test-screenshots-${{ matrix.os }}
path: test-resources/screenshots