diff --git a/.github/workflows/_test.yml b/.github/workflows/_test.yml index df9c26e9..db596ece 100644 --- a/.github/workflows/_test.yml +++ b/.github/workflows/_test.yml @@ -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 \ No newline at end of file