mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
* Add single listener deregistration * Return function to stop listening, updates types * Add missing returns, improve documentation * Duplicate interface in go * Define eventName * Use lo instead for filtering * Move logger to Interface. Add sample test. * Add vite test for events * Add js test workflow * Add corresponding go method to remove all events * Update documentation Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
32 lines
701 B
YAML
32 lines
701 B
YAML
name: Test JS
|
|
|
|
on:
|
|
push:
|
|
branches: [ release/*, master ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
name: Run JS Tests
|
|
if: github.repository == 'wailsapp/wails'
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [16.x]
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
working-directory: v2/internal/frontend/runtime
|
|
|
|
- name: Run tests
|
|
run: npm test
|
|
working-directory: v2/internal/frontend/runtime
|