Skip to content

Commit 6077d06

Browse files
committed
Add GHA install step
1 parent f0ebe9c commit 6077d06

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

.github/workflows/ci.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
install:
11+
name: "Install"
12+
runs-on: ubuntu-latest
13+
container: node:10
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
- name: Locate yarn Cache
19+
id: location-yarn-cache
20+
run: echo "::set-output name=dir::$(yarn cache dir)"
21+
22+
- name: Fetch yarn Cache
23+
uses: actions/cache@v3
24+
id: yarn-cache
25+
with:
26+
path: ${{ steps.location-yarn-cache.outputs.dir }}
27+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
28+
restore-keys: |
29+
${{ runner.os }}-yarn-
30+
31+
- name: Fetch Deps Cache
32+
uses: actions/cache@v3
33+
id: deps-cache
34+
with:
35+
path: |
36+
packages/codesandbox-api/dist
37+
packages/common/lib
38+
packages/components/lib
39+
packages/deps/dist
40+
packages/executors/dist
41+
packages/node-services/lib
42+
packages/notifications/lib
43+
packages/template-icons/lib
44+
packages/sse-hooks/dist
45+
packages/sandpack-core/lib
46+
packages/browser-eslint-rules/lib
47+
packages/browser-dart-sass/lib
48+
packages/vue3-browser-compiler/lib
49+
packages/vue3-transpiler/lib
50+
standalone-packages/codesandbox-browserfs/dist
51+
standalone-packages/codesandbox-browserfs/build
52+
standalone-packages/vscode-textmate/out
53+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
54+
restore-keys: |
55+
${{ runner.os }}-deps-
56+
57+
- name: Install and Build Deps
58+
run: |
59+
yarn install
60+
yarn build:deps

0 commit comments

Comments
 (0)