mirror of
https://github.com/stashapp/CommunityScripts.git
synced 2026-02-04 01:52:30 -06:00
* Remove code formatting workflows and related configuration files * Remove formatting instructions from README * Add plugin validator * Add workflow * Limit workflow to plugins/themes directories
24 lines
455 B
YAML
24 lines
455 B
YAML
name: Validate Plugins
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'plugins/**'
|
|
- 'themes/**'
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- 'plugins/**'
|
|
- 'themes/**'
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20.x'
|
|
- run: cd ./validator && yarn install --frozen-lockfile
|
|
- run: node ./validate.js --ci |