Skip to content

Commit

Permalink
feat: setup web client tests on actions
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed Aug 7, 2024
1 parent d2ff008 commit 90efed7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,30 @@ jobs:
run: |
cd clients/apps/nodejs
npm install
npm install mocha -g
- name: Install Node.js dependencies for web client
run: |
cd clients/tests/web
npm install
npx playwright install
npx playwright install-deps
- name: Install Node.js dependencies for lib
run: |
cd clients/libs/nodejs
npm install
- name: Install Node.js dependencies for web
run: |
cd clients/libs/web
npm install
- name: Run Client-Side Tests
run: |
cd clients/apps/nodejs
node test_basic_workflow2.js
node test_atomic_swap.js
mocha ./test/tb04-simple-lightning-latch.mjs --exit
- name: Run web client Tests
run: |
cd clients/libs/web
npx vitest --browser.name=chromium --browser.headless
- name: Tear Down
run: |
docker-compose -f docker-compose-test.yml down
1 change: 0 additions & 1 deletion clients/libs/web/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { defineConfig } from 'vite'
import { resolve } from 'path'
import { nodePolyfills } from 'vite-plugin-node-polyfills'

// https://vitejs.dev/config/
export default defineConfig({
Expand Down

0 comments on commit 90efed7

Please sign in to comment.