Added firefox tests and fixed docker deploy

This commit is contained in:
orangemug 2020-05-24 12:56:52 +01:00
parent ce731e7d6b
commit 7faed0d27e
3 changed files with 47 additions and 6 deletions

View file

@ -144,6 +144,45 @@ jobs:
- name: artifacts/screenshots - name: artifacts/screenshots
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v1
with: with:
name: screenshots name: screenshots-chrome
path: build/screenshots
# build and test the editor in standalone-firefox
test_selenium_standalone_firefox:
name: "test/standalone-firefox (${{ matrix.os }})"
runs-on: ${{ matrix.os }}
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: [10]
container:
image: node:${{ matrix.node-version }}
options: --network-alias testhost
services:
selenium:
image: selenium/standalone-firefox:3.141.59
ports:
- 4444:4444
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install
- run: BROWSER=firefox TEST_NETWORK=testhost DOCKER_HOST=selenium npm test
- name: artifacts/screenshots
uses: actions/upload-artifact@v1
with:
name: screenshots-firefox
path: build/screenshots path: build/screenshots

View file

@ -13,7 +13,7 @@ jobs:
name: deploy/docker name: deploy/docker
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
if: ${{ github.event_name == 'push' && github.ref == 'master' }} if: ${{ github.event_name == 'push' }}
strategy: strategy:
fail-fast: false fail-fast: false

View file

@ -16,10 +16,12 @@ exports.config = {
'./test/functional/index.js' './test/functional/index.js'
], ],
maxInstances: 10, maxInstances: 10,
capabilities: [{ capabilities: [
maxInstances: 5, {
browserName: 'chrome', maxInstances: 5,
}], browserName: (process.env.BROWSER || 'chrome'),
}
],
logLevel: 'info', logLevel: 'info',
bail: 0, bail: 0,
screenshotPath: SCREENSHOT_PATH, screenshotPath: SCREENSHOT_PATH,