Skip to content

Commit

Permalink
FUSETOOLS2-2475: Provide test checking that all extensions from exten…
Browse files Browse the repository at this point in the history
…sion pack are installed/activated successfully

init UI tests codebase

Signed-off-by: Dominik Jelinek <[email protected]>
  • Loading branch information
djelinek committed Sep 9, 2024
1 parent 4550f18 commit 0aece0f
Show file tree
Hide file tree
Showing 12 changed files with 5,483 additions and 18 deletions.
38 changes: 28 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,43 @@ concurrency:
jobs:
main:
runs-on: ubuntu-latest
env:
CODE_VERSION: max
TEST_RESOURCES: test-resources
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
- name: Setup NodeJS 20
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: npm

- name: Setup dependencies
run: |
npm install -g typescript @vscode/vsce
vsce --version
- name: npm-install
run: npm install
- name: npm-ci
run: npm ci

- name: npm-compile
run: npm run compile

- name: UI test
run: xvfb-run --auto-servernum npm run ui-test

- name: vsce-package
run: vsce package
- name: Store UI test log
uses: actions/upload-artifact@v4
if: failure() || cancelled()
with:
name: uitest-logs
path: test-resources/settings/logs/*

- name: Store UI Test screenshots
uses: actions/upload-artifact@v4
if: failure() || cancelled()
with:
name: uitest-screenshots
path: test-resources/screenshots/*.png
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
node_modules
*.vsix
out
.camel-jbang
camelk*
test-resources
7 changes: 7 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@
.vscode-test/**
.gitignore
vsc-extension-quickstart.md
Jenkinsfile
.github
out
src/ui-test
.camel-jbang
camelk*/**
test-resources
Loading

0 comments on commit 0aece0f

Please sign in to comment.