Skip to content

Commit

Permalink
playback workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Dec 8, 2020
1 parent 73143ce commit dea9843
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions scripts/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dea9843

Please sign in to comment.