Skip to content

Commit

Permalink
Add GHA install step
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-foster committed Oct 5, 2022
1 parent f0ebe9c commit 2b6c6c5
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: CI

on:
pull_request:
push:
branches:
- master

jobs:
install:
name: "Install"
runs-on: ubuntu-latest
container: node:10
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Locate yarn Cache
id: location-yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Fetch yarn Cache
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.location-yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Fetch Deps Cache
uses: actions/cache@v3
id: deps-cache
with:
path:
- packages/codesandbox-api/dist
- packages/common/lib
- packages/components/lib
- packages/deps/dist
- packages/executors/dist
- packages/node-services/lib
- packages/notifications/lib
- packages/template-icons/lib
- packages/sse-hooks/dist
- packages/sandpack-core/lib
- packages/browser-eslint-rules/lib
- packages/browser-dart-sass/lib
- packages/vue3-browser-compiler/lib
- packages/vue3-transpiler/lib
- standalone-packages/codesandbox-browserfs/dist
- standalone-packages/codesandbox-browserfs/build
- standalone-packages/vscode-textmate/out
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-deps-
- name: Install and Build Deps
run: |
yarn install
yarn build:deps

0 comments on commit 2b6c6c5

Please sign in to comment.