mirror of https://github.com/iptv-org/iptv
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1004 B
YAML
32 lines
1004 B
YAML
name: check
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened, edited]
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 2
|
|
- uses: tj-actions/changed-files@v35
|
|
id: files
|
|
with:
|
|
files: streams/*.m3u
|
|
- uses: actions/setup-node@v3
|
|
if: ${{ !env.ACT && steps.files.outputs.any_changed == 'true' }}
|
|
with:
|
|
node-version: 20
|
|
cache: 'npm'
|
|
- name: install dependencies
|
|
if: steps.files.outputs.any_changed == 'true'
|
|
run: npm install
|
|
- name: validate
|
|
if: steps.files.outputs.any_changed == 'true'
|
|
run: |
|
|
npm run playlist:lint -- ${{ steps.files.outputs.all_changed_files }}
|
|
npm run playlist:validate -- ${{ steps.files.outputs.all_changed_files }} |