mirror of
https://github.com/PrivateCaptcha/PrivateCaptcha.git
synced 2026-02-12 00:39:29 -06:00
47 lines
999 B
YAML
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
|