iptv/.github/workflows/check.yml
Aleksandr Statciuk 531ccd0cbe Update check.yml
2022-02-14 12:02:49 +03:00

24 lines
692 B
YAML

name: check
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened, edited]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
if: ${{ !env.ACT }}
with:
node-version: '14'
cache: 'npm'
- name: Download data from API
run: |
mkdir -p scripts/data
curl -L -o scripts/data/blocklist.json https://iptv-org.github.io/api/blocklist.json
curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json
- run: npm install
- run: npm run playlist:lint
- run: npm run playlist:validate