2020-03-03 05:34:24 +03:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
2020-07-16 20:23:36 +03:00
|
|
|
- image: mcr.microsoft.com/playwright:dev
|
2020-03-03 05:34:24 +03:00
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
|
|
|
|
- restore_cache:
|
2020-07-02 01:22:29 +03:00
|
|
|
key: dependency-cache-{{ checksum "browsers.json" }}
|
2020-03-03 05:34:24 +03:00
|
|
|
|
|
|
|
- run:
|
2020-04-21 02:57:01 +03:00
|
|
|
command: npm ci
|
2020-03-03 05:34:24 +03:00
|
|
|
|
2020-07-02 01:22:29 +03:00
|
|
|
- run:
|
|
|
|
command: npm run build
|
|
|
|
|
2020-03-03 05:34:24 +03:00
|
|
|
- save_cache:
|
2020-07-02 01:22:29 +03:00
|
|
|
key: dependency-cache-{{ checksum "browsers.json" }}
|
2020-03-03 05:34:24 +03:00
|
|
|
paths:
|
2020-07-02 01:22:29 +03:00
|
|
|
- $HOME/.cache/ms-playwright
|
2020-03-03 05:34:24 +03:00
|
|
|
|
|
|
|
- run:
|
|
|
|
command: |
|
2020-07-02 01:22:29 +03:00
|
|
|
xvfb-run --auto-servernum npm run test
|