Files
PrivateCaptcha/.github/workflows/widget.yml
Taras Kushnir fe1b40b99d Add widget test
Mainly for bug fixed in 5df983a5c4
2025-10-10 16:09:12 +03:00

47 lines
999 B
YAML

name: widget
on:
push:
branches:
- '**'
paths:
- 'widget/js/**'
- 'widget/test/**'
- '.github/workflows/eslint.yml'
# - 'web/js/**'
- '!node_modules/**'
- '!widget/node_modules/**'
- '!web/node_modules/**'
tags-ignore:
- '*'
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
- name: Install widget NPM dependencies
run: npm ci
working-directory: ./widget
- name: Run eslint for widget
run: npm run lint
working-directory: ./widget
- name: Run widget tests
run: npm run test
working-directory: ./widget