fix windows test compatibility #843 (#846) #643
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
name: VS Code extension | |
on: | |
push: | |
branches: [ main ] | |
paths: ['karavan-vscode/**', 'karavan-core/**', 'karavan-designer/**'] | |
workflow_dispatch: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# Generate Karavan UI model and API, Kamelets and Components | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: adopt | |
java-version: 17 | |
- name: Cache local Maven repository | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
!~/.m2/repository/org/apache/camel/karavan | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-maven- | |
- name: Generate Karavan UI model and API, Kamelets and Components | |
run: | | |
mvn clean compile exec:java -f karavan-generator \ | |
-Dexec.mainClass="org.apache.camel.karavan.generator.KaravanGenerator" | |
# Building Karavan Core | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Karavan Core install | |
working-directory: ./karavan-core | |
run: npm install | |
# Building Karavan VSCode extensions | |
- name: Karavan VS Code extension (install dependencies) | |
working-directory: ./karavan-vscode | |
run: npm update && npm install | |
- name: Karavan VS Code extension (install vsce) | |
working-directory: ./karavan-vscode | |
run: npm install -g @vscode/vsce | |
- name: Karavan VS Code extension (package) | |
working-directory: ./karavan-vscode | |
run: vsce package | |
- name: Karavan VS Code extension (upload) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: camel-karavan-vscode.vsix | |
path: ./karavan-vscode/*.vsix | |
if: ${{ github.ref == 'refs/heads/main' }} |