-
Notifications
You must be signed in to change notification settings - Fork 177
44 lines (37 loc) · 1.08 KB
/
bootstrap.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
name: CI
on:
push:
branches: [main, develop, release, yeet, private, beard, juice, wood, gome, cafe, arkeo]
pull_request:
branches: [main, develop, release, yeet, private]
jobs:
install-and-cache:
name: Install and Cache
runs-on: size-bertha
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Cache
uses: actions/cache@v3
with:
path: |
node_modules
~/.cache/Cypress
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Yarn Install
run: yarn install --immutable
call-pr-workflow:
name: Call
uses: ./.github/workflows/pr.yml
needs: [install-and-cache]
call-cloudflare-workflow:
name: Call
uses: ./.github/workflows/cloudflare.yml
secrets: inherit # pass org/repo secrets to the called workflow
needs: [install-and-cache]