mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Update _test.yml
This commit is contained in:
parent
7a355883d7
commit
db327d4eb6
1 changed files with 6 additions and 27 deletions
33
.github/workflows/_test.yml
vendored
33
.github/workflows/_test.yml
vendored
|
@ -1,33 +1,12 @@
|
|||
name: _test
|
||||
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:
|
||||
test:
|
||||
load:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- uses: tj-actions/changed-files@v19
|
||||
id: files
|
||||
with:
|
||||
files: sites/**/*.config.js
|
||||
- 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 -- ${{ steps.sites.outputs.all_changed_sites }}
|
||||
- uses: actions/checkout@v3
|
||||
- run: npm run api:load
|
||||
- run: npm install
|
||||
- run: CHANNELS_PATH=sites/tvtv.us/tvtv.us_us.channels.xml npm run queue:create -- --max-clusters=1 --days=2
|
||||
- run: NODE_OPTIONS=--insecure-http-parser npm run cluster:load -- --timeout=30000 --cluster-id=1
|
Loading…
Add table
Add a link
Reference in a new issue