forked from novuhq/novu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
76 lines (64 loc) 路 2.27 KB
/
action.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Setup Novu Monorepo
description: Sets up the whole monorepo and install dependencies
inputs:
cypress_version:
description: 'The version of cypress to install'
required: false
default: ''
slim:
description: 'Should only install dependencies and checkout code'
required: false
default: 'false'
submodules:
description: 'Should link submodules'
required: false
default: 'false'
outputs:
cypress_cache_hit:
description: 'Did cypress use binary cache'
value: ${{ inputs.cypress_version != '' && steps.cache-cypress-binary-version.outputs.cache-hit || steps.cache-cypress-binary.outputs.cache-hit}}
runs:
using: composite
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: 鈿欙笍 Setup kernel for react native, increase watchers
shell: bash
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
name: 鈿欙笍 Setup Node Version
with:
node-version: '20.8.1'
cache: 'pnpm'
- name: 馃挼 Start Redis
if: ${{ inputs.slim == 'false' }}
uses: supercharge/redis-github-action@1.5.0
- name: 馃摎 Start MongoDB
if: ${{ inputs.slim == 'false' }}
uses: supercharge/mongodb-github-action@v1.9.0
with:
mongodb-version: 4.2.8
- name: Cache Cypress Binary For Version
id: cache-cypress-binary-version
if: ${{ inputs.cypress_version != '' }}
uses: actions/cache@v3
with:
path: /home/runner/.cache/Cypress/${{ inputs.cypress_version }}
key: cypress-binary-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ inputs.cypress_version }}
- name: Cache Cypress Binary
id: cache-cypress-binary
if: ${{ inputs.cypress_version == '' }}
uses: actions/cache@v3
with:
path: /home/runner/.cache/Cypress
key: cypress-binary-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: 馃洘 Install dependencies
shell: bash
run: pnpm install --frozen-lockfile
- name: Link submodules
shell: bash
if: ${{ inputs.submodules == 'true' }}
run: pnpm symlink:submodules
- name: Install wait-on plugin
shell: bash
run: pnpm i -g wait-on