-
Notifications
You must be signed in to change notification settings - Fork 13
70 lines (66 loc) · 1.86 KB
/
main-kaoto.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
on:
push:
branches: [ main, feat/kaoto-next ]
pull_request:
branches: [ main, feat/kaoto-next ]
workflow_dispatch:
name: Build with main branch of kaoto-next
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Checkout vscode-kaoto
uses: actions/checkout@v4
with:
path: vscode-kaoto
- name: Checkout Kaoto
uses: actions/checkout@v4
with:
path: kaoto-next
repository: KaotoIO/kaoto-next
- uses: actions/setup-node@v4
with:
node-version: '18.15.x'
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Kaoto build
working-directory: kaoto-next
run: |
yarn
yarn workspace @kaoto-next/ui run build:lib
- name: yarn link kaoto-next
working-directory: vscode-kaoto
run: yarn link ../kaoto-next/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 UI Tests
working-directory: vscode-kaoto
run: xvfb-run -a yarn run test:it:with-prebuilt-vsix
- name: Archive vsix
uses: actions/upload-artifact@v3
with:
path: 'vscode-kaoto/*.vsix'
- name: Store VS Code logs
uses: actions/upload-artifact@v3
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@v3
if: failure()
with:
name: ui-test-screenshots
path: vscode-kaoto/test-resources/screenshots