File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,39 @@ jobs:
203
203
- name : Compute test coverage
204
204
uses : codecov/codecov-action@v1
205
205
206
+ job_nextjs_integration_test :
207
+ name : Test @sentry/nextjs on (Node ${{ matrix.node }})
208
+ needs : job_build
209
+ continue-on-error : true
210
+ timeout-minutes : 30
211
+ runs-on : ubuntu-latest
212
+ strategy :
213
+ matrix :
214
+ node : [10, 12, 14, 16]
215
+ steps :
216
+ - name : Check out current commit (${{ github.sha }})
217
+ uses : actions/checkout@v2
218
+ - name : Set up Node
219
+ uses : actions/setup-node@v1
220
+ with :
221
+ node-version : ${{ matrix.node }}
222
+ - name : Check dependency cache
223
+ uses : actions/cache@v2
224
+ with :
225
+ path : ${{ env.CACHED_DEPENDENCY_PATHS }}
226
+ key : ${{ needs.job_build.outputs.dependency_cache_key }}
227
+ - name : Check build cache
228
+ uses : actions/cache@v2
229
+ with :
230
+ path : ${{ env.CACHED_BUILD_PATHS }}
231
+ key : ${{ env.BUILD_CACHE_KEY }}
232
+ - name : Run tests
233
+ env :
234
+ NODE_VERSION : ${{ matrix.node }}
235
+ run : |
236
+ cd packages/nextjs
237
+ yarn test:integration
238
+
206
239
# Ember tests are separate from the rest because they are the slowest part of the test suite, and making them a
207
240
# separate job allows them to run in parallel with the other tests.
208
241
job_ember_tests :
Original file line number Diff line number Diff line change 63
63
"lint:eslint" : " eslint . --cache --cache-location '../../eslintcache/' --format stylish" ,
64
64
"lint:prettier" : " prettier --check \" {src,test}/**/*.ts\" " ,
65
65
"pack" : " npm pack" ,
66
- "test" : " run-s test:unit test:integration" ,
66
+ "test" : " run-s test:unit" ,
67
+ "test:all" : " run-s test:unit test:integration" ,
67
68
"test:unit" : " jest" ,
68
69
"test:integration" : " test/run-integration-tests.sh" ,
69
70
"test:watch" : " jest --watch" ,
You can’t perform that action at this time.
0 commit comments