iptv-database/.github/workflows/check.yml
2023-10-07 05:28:36 +03:00

26 lines
705 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: 18
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 }}