-
Notifications
You must be signed in to change notification settings - Fork 432
48 lines (45 loc) · 1.53 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
41
42
43
44
45
46
47
48
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
name: CI
on: [push, pull_request]
jobs:
build:
name: Tests (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install watchman
run: |
mkdir watchman
cd watchman
curl -L -O 'https://github.com/facebook/watchman/releases/download/v2021.05.24.00/watchman-v2021.05.24.00-linux.zip'
unzip watchman-v2021.05.24.00-linux.zip
cd watchman-v2021.05.24.00-linux
sudo mkdir -p /usr/local/{bin,lib} /usr/local/var/run/watchman
sudo cp bin/* /usr/local/bin
sudo cp lib/* /usr/local/lib
sudo chmod 755 /usr/local/bin/watchman
sudo chmod 2777 /usr/local/var/run/watchman
- name: yarn install (todo)
working-directory: todo
run: yarn install --frozen-lockfile
- name: lint (todo)
working-directory: todo
run: yarn run lint
- name: Update schema (todo)
working-directory: todo
run: yarn run update-schema
- name: Yarn build (todo)
working-directory: todo
run: yarn run build
- name: flow (todo)
working-directory: todo
run: yarn run flow