forked from RocketChat/Rocket.Chat.Livechat
-
Notifications
You must be signed in to change notification settings - Fork 5
67 lines (64 loc) · 1.79 KB
/
ci.yml
File metadata and controls
67 lines (64 loc) · 1.79 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Continuous Integration
on:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
build-and-test:
name: Build and Lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v2
with:
node-version: "12"
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: yarn-cache
with:
path: |
**/node_modules
.yarn/cache
key: ${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }}
- run: yarn install
if: steps.yarn-cache.outputs.cache-hit != 'true'
- run: yarn run build
- run: yarn run lint
- run: yarn run build-storybook
- uses: actions/upload-artifact@v2
with:
name: "storybooks-${{ github.event.number }}"
path: |
storybook-static
# test-with-loki:
# name: Test with Loki
# runs-on: ubuntu-latest
# needs:
# - build-and-test
# steps:
# - uses: actions/setup-node@v2
# with:
# node-version: "12"
# - uses: actions/checkout@v2
# - uses: actions/cache@v2
# id: yarn-cache
# with:
# path: |
# **/node_modules
# .yarn/cache
# key: ${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }}
# - run: yarn install
# if: steps.yarn-cache.outputs.cache-hit != 'true'
# - run: yarn run build
# - uses: actions/download-artifact@v2
# with:
# name: "storybooks-${{ github.event.number }}"
# path: |
# storybook-static
# - run: |
# cat package.json | sed s/\.docker/.app/ > package.json-new
# mv package.json-new package.json
# - uses: ./.github/actions/loki/test
# with:
# working_dir: .