@@ -16,21 +16,16 @@ jobs:
16
16
- uses : actions/cache@v2
17
17
with :
18
18
path : |
19
- node_modules
20
- */*/node_modules
19
+ ${{ github.workspace }}/node_modules
20
+ ${{ github.workspace }}/packages/**/node_modules
21
+ ${{ github.workspace }}/packages/**/build
22
+ ${{ github.workspace }}/packages/**/dist
23
+ ${{ github.workspace }}/packages/**/esm
21
24
key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
22
25
- name : Install
23
26
run : yarn install
24
27
- name : Build
25
28
run : yarn build
26
- - name : Archive production artifacts
27
- uses : actions/upload-artifact@v2
28
- with :
29
- name : build
30
- path : |
31
- ${{ github.workspace }}/packages/**/build
32
- ${{ github.workspace }}/packages/**/dist
33
- ${{ github.workspace }}/packages/**/esm
34
29
35
30
job_size_check :
36
31
name : Size Check
@@ -42,13 +37,12 @@ jobs:
42
37
- uses : actions/cache@v2
43
38
with :
44
39
path : |
45
- node_modules
46
- */*/node_modules
40
+ ${{ github.workspace }}/node_modules
41
+ ${{ github.workspace }}/packages/**/node_modules
42
+ ${{ github.workspace }}/packages/**/build
43
+ ${{ github.workspace }}/packages/**/dist
44
+ ${{ github.workspace }}/packages/**/esm
47
45
key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
48
- - uses : actions/download-artifact@v2
49
- with :
50
- name : build
51
- path : ${{ github.workspace }}/packages
52
46
-
uses :
andresz1/[email protected]
53
47
with :
54
48
github_token : ${{ secrets.GITHUB_TOKEN }}
@@ -64,14 +58,13 @@ jobs:
64
58
- uses : actions/cache@v2
65
59
with :
66
60
path : |
67
- node_modules
68
- */*/node_modules
61
+ ${{ github.workspace }}/node_modules
62
+ ${{ github.workspace }}/packages/**/node_modules
63
+ ${{ github.workspace }}/packages/**/build
64
+ ${{ github.workspace }}/packages/**/dist
65
+ ${{ github.workspace }}/packages/**/esm
69
66
key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
70
67
- run : yarn install
71
- - uses : actions/download-artifact@v2
72
- with :
73
- name : build
74
- path : ${{ github.workspace }}/packages
75
68
- name : Run Linter
76
69
run : yarn lint
77
70
@@ -85,13 +78,105 @@ jobs:
85
78
- uses : actions/cache@v2
86
79
with :
87
80
path : |
88
- node_modules
89
- */*/node_modules
81
+ ${{ github.workspace }}/node_modules
82
+ ${{ github.workspace }}/packages/**/node_modules
83
+ ${{ github.workspace }}/packages/**/build
84
+ ${{ github.workspace }}/packages/**/dist
85
+ ${{ github.workspace }}/packages/**/esm
90
86
key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
91
87
- run : yarn install
92
- - uses : actions/download-artifact@v2
93
- with :
94
- name : build
95
- path : ${{ github.workspace }}/packages
96
88
- name : Unit Tests
97
- run : yarn test
89
+ run : yarn test --ignore="@sentry/ember"
90
+ - uses : codecov/codecov-action@v1
91
+
92
+ job_browserstack_test :
93
+ name : BrowserStack
94
+ needs : job_build
95
+ runs-on : ubuntu-latest
96
+ steps :
97
+ - uses : actions/checkout@v2
98
+ - uses : actions/setup-node@v1
99
+ - uses : actions/cache@v2
100
+ with :
101
+ path : |
102
+ ${{ github.workspace }}/node_modules
103
+ ${{ github.workspace }}/packages/**/node_modules
104
+ ${{ github.workspace }}/packages/**/build
105
+ ${{ github.workspace }}/packages/**/dist
106
+ ${{ github.workspace }}/packages/**/esm
107
+ key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
108
+ - run : yarn install
109
+ - name : Integration Tests
110
+ env :
111
+ BROWSERSTACK_USERNAME : ${{ secrets.BROWSERSTACK_USERNAME }}
112
+ BROWSERSTACK_ACCESS_KEY : ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
113
+ if : " 'refs/heads/master' == github.ref || startsWith(github.ref, 'refs/tags/')"
114
+ run : |
115
+ cd packages/browser
116
+ yarn test:integration:checkbrowsers
117
+ yarn test:integration
118
+ yarn test:package
119
+
120
+ job_zeus :
121
+ name : Zeus
122
+ needs : job_build
123
+ runs-on : ubuntu-latest
124
+ steps :
125
+ - uses : actions/checkout@v2
126
+ - uses : actions/setup-node@v1
127
+ - uses : actions/cache@v2
128
+ with :
129
+ path : |
130
+ ${{ github.workspace }}/node_modules
131
+ ${{ github.workspace }}/packages/**/node_modules
132
+ ${{ github.workspace }}/packages/**/build
133
+ ${{ github.workspace }}/packages/**/dist
134
+ ${{ github.workspace }}/packages/**/esm
135
+ key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
136
+ - run : yarn install
137
+ - name : Install Zeus
138
+ run : |
139
+ yarn global add @zeus-ci/cli
140
+ echo "::add-path::$(yarn global bin)"
141
+ - name : Upload to Zeus
142
+ env :
143
+ ZEUS_API_TOKEN : ${{ secrets.ZEUS_API_TOKEN }}
144
+ ZEUS_HOOK_BASE : ${{ secrets.ZEUS_HOOK_BASE }}
145
+ run : |
146
+ zeus job update -b $GITHUB_RUN_ID -j $GITHUB_RUN_NUMBER -r $GITHUB_SHA
147
+ yarn pack:changed
148
+ zeus upload -b $GITHUB_RUN_ID -j $GITHUB_RUN_NUMBER -t "application/tar+npm" ./packages/**/*.tgz
149
+ zeus upload -b $GITHUB_RUN_ID -j $GITHUB_RUN_NUMBER -t "application/javascript" ./packages/browser/build/*
150
+ zeus upload -b $GITHUB_RUN_ID -j $GITHUB_RUN_NUMBER -t "application/javascript" ./packages/integrations/build/*
151
+ zeus upload -b $GITHUB_RUN_ID -j $GITHUB_RUN_NUMBER -t "application/javascript" ./packages/apm/build/*
152
+ zeus upload -b $GITHUB_RUN_ID -j $GITHUB_RUN_NUMBER -t "application/javascript" ./packages/tracing/build/*
153
+ zeus job update --status=passed -b $GITHUB_RUN_ID -j $GITHUB_RUN_NUMBER -r $GITHUB_SHA
154
+
155
+ job_artifacts :
156
+ name : Artifacts Upload
157
+ needs : job_build
158
+ runs-on : ubuntu-latest
159
+ steps :
160
+ - uses : actions/checkout@v2
161
+ - uses : actions/setup-node@v1
162
+ - uses : actions/cache@v2
163
+ with :
164
+ path : |
165
+ ${{ github.workspace }}/node_modules
166
+ ${{ github.workspace }}/packages/**/node_modules
167
+ ${{ github.workspace }}/packages/**/build
168
+ ${{ github.workspace }}/packages/**/dist
169
+ ${{ github.workspace }}/packages/**/esm
170
+ key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
171
+ - name : Pack
172
+ run : yarn pack:changed
173
+ - name : Archive Artifacts
174
+ uses : actions/upload-artifact@v2
175
+ with :
176
+ name : ${{ github.sha }}
177
+ path : |
178
+ ${{ github.workspace }}/packages/browser/build/**
179
+ ${{ github.workspace }}/packages/integrations/build/**
180
+ ${{ github.workspace }}/packages/apm/build/**
181
+ ${{ github.workspace }}/packages/tracing/build/**
182
+ ${{ github.workspace }}/packages/**/*.tgz
0 commit comments