Skip to content

Commit

Permalink
test: run browser tests as GitHub actions matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
ctavan committed Jan 15, 2020
1 parent 62cf034 commit 67be5ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
strategy:
matrix:
node-version: [12.x]
browser: [chrome, edge, firefox, ie, safari]

steps:
- uses: actions/checkout@v1
Expand All @@ -21,8 +22,10 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run test:browser
- name: Test ${{ matrix.node-version }}
run: npm run test:browser
env:
CI: true
BROWSER: ${{ matrix.browser }}
BROWSERSTACK_USER: ${{ secrets.BROWSERSTACK_USER }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"eslint:fix": "eslint --fix src/ test/ examples/ *.js",
"test": "BABEL_ENV=commonjs jest test/unit/",
"pretest:browser": "npm run package && npm-run-all --parallel examples:**",
"test:browser": "BABEL_ENV=commonjs jest --forceExit --verbose test/browser/",
"test:browser": "BABEL_ENV=commonjs jest --forceExit --verbose test/browser/${BROWSER:-}*",
"prettier:check": "prettier --ignore-path .prettierignore --check '**/*.{js,jsx,json,md}'",
"prettier:fix": "prettier --ignore-path .prettierignore --write '**/*.{js,jsx,json,md}'",
"ci": "npm run lint && npm run test && npm run prettier:check && npm run docs:diff",
Expand Down

0 comments on commit 67be5ac

Please sign in to comment.