Adapt test to newly published example of catalog set #1930
Workflow file for this run
This file contains 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
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
name: Build with main branch of kaoto | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
env: | |
CODE_VERSION: max | |
TEST_RESOURCES: test-resources | |
steps: | |
- name: Checkout vscode-kaoto | |
uses: actions/checkout@v4 | |
with: | |
path: vscode-kaoto | |
- name: Checkout Kaoto | |
uses: actions/checkout@v4 | |
with: | |
path: kaoto | |
repository: KaotoIO/kaoto | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Kaoto build | |
working-directory: kaoto | |
run: | | |
yarn | |
yarn workspace @kaoto/kaoto run build:lib | |
- name: yarn link kaoto | |
working-directory: vscode-kaoto | |
run: yarn link ../kaoto/packages/ui | |
- name: yarn build:dev | |
working-directory: vscode-kaoto | |
run: yarn build:dev | |
- name: yarn build:prod | |
working-directory: vscode-kaoto | |
run: yarn build:prod | |
- name: vsix package | |
working-directory: vscode-kaoto | |
run: yarn vsce package --no-dependencies --yarn | |
- name: Run Unit tests | |
working-directory: vscode-kaoto | |
run: xvfb-run -a yarn test:unit | |
- name: Run UI Tests | |
working-directory: vscode-kaoto | |
run: xvfb-run -a yarn run test:it:with-prebuilt-vsix | |
- name: Archive vsix | |
uses: actions/upload-artifact@v4 | |
with: | |
name: vsix-from-main-branch-of-kaoto | |
path: 'vscode-kaoto/*.vsix' | |
- name: Store VS Code logs | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: vscode-logs | |
path: vscode-kaoto/test-resources/settings/logs | |
- name: Store VS Code UI Tests screenshots on failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: ui-test-screenshots | |
path: vscode-kaoto/test-resources/screenshots |