Skip to content

Commit a2ed8ef

Browse files
authored
feat: add github actions (#199)
1 parent 01d1c84 commit a2ed8ef

File tree

2 files changed

+91
-135
lines changed

2 files changed

+91
-135
lines changed

.circleci/config.yml

Lines changed: 0 additions & 135 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: Build
2+
on: push
3+
4+
jobs:
5+
lint:
6+
runs-on: ubuntu-18.04
7+
strategy:
8+
matrix:
9+
node-version: [10,12,14]
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: ${{ matrix.node-version }}
15+
- name: Get yarn cache
16+
id: yarn-cache
17+
run: echo "::set-output name=dir::$(yarn cache dir)"
18+
- uses: actions/cache@v2
19+
with:
20+
path: ${{ steps.yarn-cache.outputs.dir }}
21+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
22+
- name: Install Dependencies
23+
run: yarn
24+
- name: ESLint Checks
25+
run: yarn lint
26+
tsc:
27+
runs-on: ubuntu-18.04
28+
strategy:
29+
matrix:
30+
node-version: [10,12,14]
31+
steps:
32+
- uses: actions/checkout@v2
33+
- uses: actions/setup-node@v1
34+
with:
35+
node-version: ${{ matrix.node-version }}
36+
- name: Get yarn cache
37+
id: yarn-cache
38+
run: echo "::set-output name=dir::$(yarn cache dir)"
39+
- uses: actions/cache@v2
40+
with:
41+
path: ${{ steps.yarn-cache.outputs.dir }}
42+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
43+
- name: Install Dependencies
44+
run: yarn
45+
- name: TypeScript type check
46+
run: yarn test:tsc
47+
flow:
48+
runs-on: ubuntu-18.04
49+
strategy:
50+
matrix:
51+
node-version: [10,12,14]
52+
steps:
53+
- uses: actions/checkout@v2
54+
- uses: actions/setup-node@v1
55+
with:
56+
node-version: ${{ matrix.node-version }}
57+
- name: Get yarn cache
58+
id: yarn-cache
59+
run: echo "::set-output name=dir::$(yarn cache dir)"
60+
- uses: actions/cache@v2
61+
with:
62+
path: ${{ steps.yarn-cache.outputs.dir }}
63+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
64+
- name: Install Dependencies
65+
run: yarn
66+
- name: TypeScript type check
67+
run: yarn test:flow
68+
ios:
69+
runs-on: macos-latest
70+
strategy:
71+
matrix:
72+
node-version: [10,12,14]
73+
steps:
74+
- uses: actions/checkout@v2
75+
- uses: actions/setup-node@v1
76+
with:
77+
node-version: ${{ matrix.node-version }}
78+
- name: Get yarn cache
79+
id: yarn-cache
80+
run: echo "::set-output name=dir::$(yarn cache dir)"
81+
- uses: actions/cache@v2
82+
with:
83+
path: ${{ steps.yarn-cache.outputs.dir }}
84+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
85+
- name: Install Dependencies
86+
run: yarn
87+
- name: Install Podfiles
88+
run: cd example && npx pod-install
89+
- name: Build example app
90+
run: yarn ios
91+

0 commit comments

Comments
 (0)