mirror of
https://github.com/iptv-org/database.git
synced 2024-11-23 19:34:09 -05:00
26 lines
705 B
YAML
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 }}
|