-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (36 loc) · 1.24 KB
/
ci.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
name: CI
on:
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Simulator
uses: actions/checkout@v2
with:
path: simulator
submodules: recursive
- name: Install Simulator system dependencies
run: sudo apt-get update && sudo apt-get install -y wget git cmake build-essential swig zlib1g-dev doxygen default-jre python2.7
- name: Install Simulator dependencies
run: yarn run build-deps
working-directory: simulator
- name: Install Simulator modules
# Specifying an alternative cache folder to work around a race condition issue in yarn,
# which seems to occur b/c of how ivygate is referenced from GitHub.
# See https://github.com/yarnpkg/yarn/issues/7212
run: yarn install --cache-folder ./.yarncache
working-directory: simulator
- name: Build i18n
run: yarn run build-i18n
working-directory: simulator
- name: Build production bundle
run: NODE_OPTIONS=--openssl-legacy-provider yarn build
working-directory: simulator
- name: Run linter
run: yarn lint
working-directory: simulator
- name: Run unit tests
run: yarn test
working-directory: simulator