mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
34 lines
836 B
YAML
34 lines
836 B
YAML
name: Node CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [12.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: install required packages
|
|
run: |
|
|
sudo apt-get install libwoff1 libopus0 libwebp6 libwebpdemux2 libenchant1c2a libgudev-1.0-0 libsecret-1-0 libhyphen0 libgdk-pixbuf2.0-0
|
|
sudo apt-get install xvfb
|
|
|
|
- name: npm install, build, and test
|
|
run: |
|
|
npm ci
|
|
npm run build --if-present
|
|
xvfb-run --auto-servernum npm run unit
|
|
xvfb-run --auto-servernum npm run funit
|
|
xvfb-run --auto-servernum npm run wunit
|
|
env:
|
|
CI: true
|