mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-27 23:35:23 +01:00
Added firefox tests and fixed docker deploy
This commit is contained in:
parent
ce731e7d6b
commit
7faed0d27e
3 changed files with 47 additions and 6 deletions
41
.github/workflows/ci.yml
vendored
41
.github/workflows/ci.yml
vendored
|
@ -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
|
||||||
|
|
||||||
|
|
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
|
@ -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
|
||||||
|
|
|
@ -16,10 +16,12 @@ exports.config = {
|
||||||
'./test/functional/index.js'
|
'./test/functional/index.js'
|
||||||
],
|
],
|
||||||
maxInstances: 10,
|
maxInstances: 10,
|
||||||
capabilities: [{
|
capabilities: [
|
||||||
|
{
|
||||||
maxInstances: 5,
|
maxInstances: 5,
|
||||||
browserName: 'chrome',
|
browserName: (process.env.BROWSER || 'chrome'),
|
||||||
}],
|
}
|
||||||
|
],
|
||||||
logLevel: 'info',
|
logLevel: 'info',
|
||||||
bail: 0,
|
bail: 0,
|
||||||
screenshotPath: SCREENSHOT_PATH,
|
screenshotPath: SCREENSHOT_PATH,
|
||||||
|
|
Loading…
Reference in a new issue