From dea984305e867bbfc995b3e371d4fccdd882dc84 Mon Sep 17 00:00:00 2001 From: brandonocasey Date: Tue, 8 Dec 2020 17:28:16 -0500 Subject: [PATCH] playback workflow --- .github/workflows/ci.yml | 9 ++++----- scripts/rollup.config.js | 6 +++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a3c9214f5..ec3613b32 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,12 +21,12 @@ jobs: strategy: matrix: os: [ubuntu-latest] + test-type: [unit] + experimental: [false] include: - - test-type: playback + - os: ubuntu-latest + test-type: playback experimental: true - - test-type: unit - experimental: false - env: BROWSER_STACK_USERNAME: ${{secrets.BROWSER_STACK_USERNAME}} BROWSER_STACK_ACCESS_KEY: ${{secrets.BROWSER_STACK_ACCESS_KEY}} @@ -77,7 +77,6 @@ jobs: - name: npm install run: npm i --prefer-offline --no-audit - # run chrome/firefox or browserstack in linux - name: run npm test continue-on-error: ${{matrix.experimental}} uses: GabrielBB/xvfb-action@v1 diff --git a/scripts/rollup.config.js b/scripts/rollup.config.js index 8d564f8e4..4d10d95fa 100644 --- a/scripts/rollup.config.js +++ b/scripts/rollup.config.js @@ -77,10 +77,10 @@ const options = { }; if (process.env.CI_TEST_TYPE) { - if (process.env.CI_TEST_TYPE === 'unit') { - options.testInput = ['!test/playback.test.js', 'test/**/*.test.js']; - } else { + if (process.env.CI_TEST_TYPE === 'playback') { options.testInput = 'test/playback.test.js'; + } else { + options.testInput = ['!test/playback.test.js', 'test/**/*.test.js']; } } const config = generate(options);