forked from reimagined/resolve
-
Notifications
You must be signed in to change notification settings - Fork 0
128 lines (105 loc) · 3.73 KB
/
Copy pathmaster.yml
File metadata and controls
128 lines (105 loc) · 3.73 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
name: Master CI/CD
on:
push:
branches:
- disabled
pull_request:
branches:
- disabled
jobs:
smoke-test:
runs-on: ubuntu-latest
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.head_ref == 'dev')
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '10'
- name: Install
run: yarn install --frozen-lockfile
- name: Prettier
run: yarn prettier:check
- name: ESLint
run: yarn lint
- name: Unit test
run: yarn test
- name: Integration test
run: yarn test:integration
e2e-macOS-test:
runs-on: [self-hosted, macOS, X64, resolve-mac-mini]
if: github.event_name == 'pull_request' && github.head_ref == 'dev'
steps:
- uses: actions/checkout@v2
- name: Yarn Cache Clean
run: yarn cache clean
- name: Install
run: |
yarn install --frozen-lockfile
yarn build-packages
pm2 delete local-registry || true
pm2 start packages/internal/local-registry/bin/index.js --name local-registry
- name: Tutorial E2E test
run: yarn tutorial-test:e2e safari
- name: CRA > hacker-news
run: |
cd ..
rm -rf hacker-news || true
node resolve/packages/core/create-resolve-app/bin/index.js --local-registry -c ${{ github.sha }} -e hacker-news hacker-news
cd hacker-news
yarn test:e2e safari
cd ..
rm -rf hacker-news
- name: CRA > hello-world
run: |
cd ..
rm -rf hello-world || true
node resolve/packages/core/create-resolve-app/bin/index.js --local-registry -c ${{ github.sha }} -e hello-world hello-world
cd hello-world
yarn test:e2e safari
cd ..
rm -rf hello-world
- name: CRA > shopping-list
run: |
cd ..
rm -rf shopping-list || true
node resolve/packages/core/create-resolve-app/bin/index.js --local-registry -c ${{ github.sha }} -e shopping-list shopping-list
cd shopping-list
yarn test:e2e safari
cd ..
rm -rf shopping-list
- name: CRA > with-postcss
run: |
cd ..
rm -rf with-postcss || true
node resolve/packages/core/create-resolve-app/bin/index.js --local-registry -c ${{ github.sha }} -e with-postcss with-postcss
cd with-postcss
yarn test:e2e safari
cd ..
rm -rf with-postcss
- name: CRA > with-styled-components
run: |
cd ..
rm -rf with-styled-components || true
node resolve/packages/core/create-resolve-app/bin/index.js --local-registry -c ${{ github.sha }} -e with-styled-components with-styled-components
cd with-styled-components
yarn test:e2e safari
cd ..
rm -rf with-styled-components
- name: CRA > personal-data
run: |
cd ..
rm -rf personal-data || true
node resolve/packages/core/create-resolve-app/bin/index.js --local-registry -c ${{ github.sha }} -e personal-data personal-data
cd personal-data
yarn test:e2e safari
cd ..
rm -rf personal-data
- name: CRA > shopping-list-with-redux-hooks
run: |
cd ..
rm -rf shopping-list-with-redux-hooks || true
node resolve/packages/core/create-resolve-app/bin/index.js --local-registry -c ${{ github.sha }} -e shopping-list-with-redux-hooks shopping-list-with-redux-hooks
cd shopping-list-with-redux-hooks
yarn test:e2e safari
cd ..
rm -rf shopping-list-with-redux-hooks