-
-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (44 loc) · 1.17 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: xLayers CI
on:
push:
branches:
- master
- release/*
pull_request:
branches:
- master
jobs:
build:
name: ${{ matrix.os }} ${{ matrix.version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-16.04]
version: ['1.39.2']
steps:
- name: Clone repository
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Cache node modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-${{ matrix.version }}
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: Install Dependencies
run: npm install
- name: Start xvfb
if: startsWith(matrix.os, 'ubuntu')
run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- name: Run tests
env:
CODE_VERSION: ${{ matrix.version }}
DISPLAY: ':99.0'
run: npm run test