mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Update check.yml
This commit is contained in:
parent
fef6c50bf1
commit
7e303db1f5
1 changed files with 17 additions and 10 deletions
27
.github/workflows/check.yml
vendored
27
.github/workflows/check.yml
vendored
|
@ -17,19 +17,26 @@ jobs:
|
||||||
id: files
|
id: files
|
||||||
with:
|
with:
|
||||||
since_last_remote_commit: true
|
since_last_remote_commit: true
|
||||||
files: |
|
files_yaml: |
|
||||||
tests/**/*.{js,ts}
|
js:
|
||||||
scripts/**/*.{js,ts}
|
- tests/**/*.{js,ts}
|
||||||
sites/**/*.{js,ts}
|
- scripts/**/*.{js,ts}
|
||||||
|
- sites/**/*.{js,ts}
|
||||||
|
channels:
|
||||||
|
- sites/**/*.channels.xml
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
if: ${{ !env.ACT && steps.files.outputs.any_changed == 'true' }}
|
if: ${{ !env.ACT && (steps.files.outputs.js_any_changed == 'true' || steps.files.outputs.channels_any_changed == 'true') }}
|
||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: 22
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
if: steps.files.outputs.any_changed == 'true'
|
if: steps.files.outputs.js_any_changed == 'true' || steps.files.outputs.channels_any_changed == 'true'
|
||||||
run: npm install
|
run: SKIP_POSTINSTALL=1 npm install
|
||||||
- name: check changed files
|
- name: check changed js-files
|
||||||
if: steps.files.outputs.any_changed == 'true'
|
if: steps.files.outputs.js_any_changed == 'true'
|
||||||
run: |
|
run: |
|
||||||
npx eslint ${{ steps.files.outputs.all_changed_files }}
|
npx eslint ${{ steps.files.outputs.js_all_changed_files }}
|
||||||
|
- name: check changed *.channels.xml
|
||||||
|
if: steps.files.outputs.channels_any_changed == 'true'
|
||||||
|
run: |
|
||||||
|
npm run channels:lint -- ${{ steps.files.outputs.channels_all_changed_files }}
|
Loading…
Add table
Add a link
Reference in a new issue