Skip to content

Widget unit testing

Widget unit testing #1

name: Widget unit testing
on:
workflow_dispatch:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
defaults:
run:
working-directory: widget
jobs:
jest:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run test:unit --if-present