iptv-database/.github/workflows/check.yml
2024-12-05 14:24:03 +03:00

26 lines
712 B
YAML

name: check
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened, edited]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: actions/setup-node@v3
if: ${{ !env.ACT }}
with:
node-version: '22.12.0'
cache: 'npm'
- uses: tj-actions/changed-files@v35
id: files
with:
files: data/*.csv
- name: install dependencies
run: npm install
- name: validate
if: steps.files.outputs.any_changed == 'true'
run: npm run db:validate -- ${{ steps.files.outputs.all_changed_files }}