Skip to content

Commit 98f6142

Browse files
committed
chore: more tasks
1 parent 835047e commit 98f6142

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

.github/actions/setup-node-deps/action.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,26 @@ runs:
99
with:
1010
node-version: '16'
1111

12-
- name: Cache dependencies
12+
- name: Cache deps
1313
id: yarn-cache
1414
uses: actions/cache@v3
1515
with:
1616
path: ./node_modules
1717
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
1818

19-
- name: Install dependencies
19+
- name: Install deps
2020
if: steps.yarn-cache.outputs.cache-hit != 'true'
2121
run: yarn install --frozen-lockfile
2222
shell: bash
23+
24+
- name: Cache website deps
25+
id: yarn-cache-website
26+
uses: actions/cache@v3
27+
with:
28+
path: ./website/node_modules
29+
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}-website
30+
31+
- name: Install website deps
32+
if: steps.yarn-cache-website.outputs.cache-hit != 'true'
33+
run: yarn --cwd website install --frozen-lockfile
34+
shell: bash

.github/workflows/main.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,20 @@ jobs:
4444
- name: Typecheck
4545
run: yarn typecheck
4646

47+
flow:
48+
needs: [install-cached-deps]
49+
runs-on: ubuntu-latest
50+
name: Flow
51+
steps:
52+
- name: Checkout
53+
uses: actions/checkout@v3
54+
55+
- name: Setup Node.js and deps
56+
uses: ./.github/actions/setup-node-deps
57+
58+
- name: Flow
59+
run: yarn flow
60+
4761
test:
4862
needs: [install-cached-deps]
4963
runs-on: ubuntu-latest
@@ -71,3 +85,17 @@ jobs:
7185

7286
- name: Test React 17
7387
run: yarn test:ci:react:17
88+
89+
test-website:
90+
needs: [install-cached-deps]
91+
runs-on: ubuntu-latest
92+
name: Test Website
93+
steps:
94+
- name: Checkout
95+
uses: actions/checkout@v3
96+
97+
- name: Setup Node.js and deps
98+
uses: ./.github/actions/setup-node-deps
99+
100+
- name: Build website
101+
run: yarn --cwd website build

0 commit comments

Comments
 (0)