-
Notifications
You must be signed in to change notification settings - Fork 162
46 lines (44 loc) · 1.21 KB
/
ci-pr.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
name: Continuous Integration
on:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
build-and-test:
name: Build and Test
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v2
with:
node-version: "14.21.3"
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: yarn-cache
with:
path: |
**/node_modules
.yarn/cache
key: ${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }}
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v2
with:
path: .turbo
key: turbo-${{ runner.os }}-${{ github.job }}
restore-keys: |
turbo-${{ runner.os }}-
- run: yarn install
if: steps.yarn-cache.outputs.cache-hit != 'true'
- run: yarn run ci
- uses: actions/upload-artifact@v2
with:
name: "storybooks-${{ github.event.number }}"
path: |
packages/fuselage/storybook-static
packages/onboarding-ui/storybook-static
packages/layout/storybook-static