mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 18:37:01 -05:00
Update _test.yml
This commit is contained in:
16
.github/workflows/_test.yml
vendored
16
.github/workflows/_test.yml
vendored
@@ -17,13 +17,17 @@ jobs:
|
||||
id: files
|
||||
with:
|
||||
files: sites/**/*.config.js
|
||||
- uses: actions/setup-node@v2
|
||||
if: ${{ !env.ACT && steps.files.outputs.any_changed == 'true' }}
|
||||
with:
|
||||
node-version: '14'
|
||||
cache: 'npm'
|
||||
- name: Set changed sites name
|
||||
if: ${{ steps.files.outputs.any_changed == 'true' }}
|
||||
id: sites
|
||||
run: |
|
||||
declare out
|
||||
for i in ${{ steps.files.outputs.all_changed_files }}; do
|
||||
out+="$(echo $i | cut -d'/' -f 2) "
|
||||
done
|
||||
echo "::set-output name=all_changed_sites::$(echo $out)"
|
||||
- name: test
|
||||
if: steps.files.outputs.any_changed == 'true'
|
||||
run: |
|
||||
npm install
|
||||
npm test -- sites
|
||||
npm test -- ${{ steps.sites.outputs.all_changed_sites }}
|
||||
|
||||
Reference in New Issue
Block a user