forked from camel-tooling/camel-lsp-client-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
137 lines (116 loc) · 3.87 KB
/
camel_version.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
name: Camel Version CI
on:
pull_request:
branches: [ main ]
push:
branches: [ main, jbang490 ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
camel:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
camel-version: [ "4.4.0", "4.0.0.redhat-00036", "4.4.0.redhat-00019"]
env:
CODE_VERSION: max
CODE_TYPE: stable
TEST_RESOURCES: test-resources
CAMEL_VERSION: ${{ matrix.camel-version }}
runs-on: ${{ matrix.os }}
name: ${{ matrix.camel-version }} / ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: "temurin"
- name: Test java
run: java --version
- name: Install JBang (ubuntu, macOS)
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: |
curl -Ls https://sh.jbang.dev | bash -s - app setup
echo "$HOME/.jbang/bin" >> $GITHUB_PATH
- name: Install JBang (windows)
if: matrix.os == 'windows-latest'
run: choco install jbang
- name: Setup JBang (trusted sources)
run: jbang trust add https://github.com/apache/
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Setup vsce
run: |
npm install -g typescript @vscode/vsce
vsce --version
- name: npm-ci
run: npm ci
- name: ui test (ubuntu)
id: uiTest_Ubuntu
if: matrix.os == 'ubuntu-latest'
run: xvfb-run --auto-servernum npm run ui-test
- name: ui test (macos, windows)
id: uiTest_MacOS_Windows
if: matrix.os != 'ubuntu-latest'
run: npm run ui-test
- name: vsce-package
run: vsce package
- name: Store Camel Language Server log
uses: actions/upload-artifact@v4
if: failure() && matrix.os != 'windows-latest'
with:
name: ${{ matrix.os }}-${{ matrix.camel-version }}-camel-lsp-log
path: |
/tmp/log-camel-lsp.log
/tmp/log-camel*.log.gz
- name: Store UI test logs
uses: actions/upload-artifact@v4
if: |
(failure() || cancelled()) &&
(steps.uiTest_Ubuntu.outcome == 'failure' ||
steps.uiTest_MacOS_Windows.outcome == 'failure' ||
steps.uiTest_Ubuntu.outcome == 'cancelled' ||
steps.uiTest_MacOS_Windows.outcome == 'cancelled')
with:
name: ${{ matrix.os }}-${{ matrix.camel-version }}-ui-test-logs
path: test-resources/settings/logs/*
- name: Store UI Test Screenshots
uses: actions/upload-artifact@v4
if: |
(failure() || cancelled()) &&
(steps.uiTest_Ubuntu.outcome == 'failure' ||
steps.uiTest_MacOS_Windows.outcome == 'failure' ||
steps.uiTest_Ubuntu.outcome == 'cancelled' ||
steps.uiTest_MacOS_Windows.outcome == 'cancelled')
with:
name: ${{ matrix.os }}-${{ matrix.camel-version }}-ui-test-screenshots
path: test-resources/screenshots/*.png
check:
if: always()
runs-on: ubuntu-latest
name: Status Check
needs: [ camel ]
steps:
- name: Test Matrix Result
run: |
echo result = ${{ needs.camel.result }}
- name: Status Check - success
if: ${{ needs.camel.result == 'success' }}
run: |
echo "All tests successfully completed!"
exit 0
- name: Status Check - failure
if: ${{ needs.camel.result != 'success' }}
run: |
echo "Status Check failed!"
exit 1