File tree Expand file tree Collapse file tree 5 files changed +21
-44
lines changed
packages/browser/test/integration Expand file tree Collapse file tree 5 files changed +21
-44
lines changed Original file line number Diff line number Diff line change 10
10
job_build :
11
11
name : Build
12
12
runs-on : ubuntu-latest
13
+ timeout-minutes : 15
13
14
steps :
14
15
- uses : actions/checkout@v2
15
16
- uses : actions/setup-node@v1
31
32
job_size_check :
32
33
name : Size Check
33
34
needs : job_build
35
+ timeout-minutes : 15
34
36
runs-on : ubuntu-latest
35
37
if : ${{ github.head_ref }}
36
38
steps :
54
56
job_lint :
55
57
name : Lint
56
58
needs : job_build
59
+ timeout-minutes : 10
57
60
runs-on : ubuntu-latest
58
61
steps :
59
62
- uses : actions/checkout@v2
@@ -75,10 +78,17 @@ jobs:
75
78
job_unit_test :
76
79
name : Test
77
80
needs : job_build
81
+ continue-on-error : true
82
+ timeout-minutes : 30
78
83
runs-on : ubuntu-latest
84
+ strategy :
85
+ matrix :
86
+ node : [6, 8, 10, 12, 14]
79
87
steps :
80
88
- uses : actions/checkout@v2
81
89
- uses : actions/setup-node@v1
90
+ with :
91
+ node-version : ${{ matrix.node }}
82
92
- uses : actions/cache@v2
83
93
with :
84
94
path : |
89
99
${{ github.workspace }}/packages/**/esm
90
100
${{ github.workspace }}/packages/serverless/dist-awslambda-layer/*.zip
91
101
key : ${{ github.sha }}
92
- - run : yarn install
93
102
- name : Unit Tests
94
- run : yarn test
103
+ env :
104
+ NODE_VERSION : ${{ matrix.node }}
105
+ run : ./scripts/test.sh
95
106
- uses : codecov/codecov-action@v1
96
107
97
108
job_artifacts :
@@ -129,6 +140,7 @@ jobs:
129
140
name : BrowserStack
130
141
needs : job_build
131
142
runs-on : ubuntu-latest
143
+ timeout-minutes : 45
132
144
if : " github.ref == 'refs/heads/master'"
133
145
steps :
134
146
- uses : actions/checkout@v2
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ module.exports = {
23
23
bs_android_6 : {
24
24
base : "BrowserStack" ,
25
25
browser : "Android Browser" ,
26
- device : "Samsung Galaxy Note 4 " ,
26
+ device : "Google Nexus 6 " ,
27
27
os : "android" ,
28
28
os_version : "6.0" ,
29
29
real_mobile : true ,
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ const browsers = isLocalRun ? ["ChromeHeadless"] : Object.keys(customLaunchers);
12
12
// for each browser here, so that we have a nice distinction of when the tests were run exactly.
13
13
if ( ! isLocalRun ) {
14
14
for ( const browser in customLaunchers ) {
15
- customLaunchers [ browser ] . build = process . env . TRAVIS_BUILD_NUMBER
16
- ? `Travis : ${ process . env . TRAVIS_BUILD_NUMBER } `
15
+ customLaunchers [ browser ] . build = process . env . GITHUB_RUN_ID
16
+ ? `CI : ${ process . env . GITHUB_RUN_ID } `
17
17
: `Manual: ${ new Date ( ) . toLocaleString ( ) } ` ;
18
18
}
19
19
}
Original file line number Diff line number Diff line change 3
3
source ~ /.nvm/nvm.sh
4
4
5
5
# We need this check to skip engines check for typescript-tslint-plugin package
6
- if [[ " $( cut -d. -f1 <<< " $TRAVIS_NODE_VERSION" ) " -le 6 ]]; then
6
+ if [[ " $( cut -d. -f1 <<< " $NODE_VERSION" ) " -le 6 ]]; then
7
+ nvm install 8
7
8
nvm use 8
8
9
yarn install --ignore-engines --ignore-scripts
9
10
# current versions of nock don't support node 6
@@ -12,10 +13,11 @@ if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -le 6 ]]; then
12
13
cd ../..
13
14
# ember requires Node >= 10 to build
14
15
yarn build --ignore=" @sentry/ember" --ignore=" @sentry/serverless" --ignore=" @sentry/gatsby" --ignore=" @sentry/react"
16
+ nvm install 6
15
17
nvm use 6
16
18
# browser can be tested only on Node >= v8 because Karma is not supporting anything older
17
19
yarn test --ignore=" @sentry/tracing" --ignore=" @sentry/react" --ignore=" @sentry/gatsby" --ignore=" @sentry/ember" --ignore=" @sentry-internal/eslint-plugin-sdk" --ignore=" @sentry-internal/eslint-config-sdk" --ignore=" @sentry/serverless" --ignore=" @sentry/browser" --ignore=" @sentry/integrations"
18
- elif [[ " $( cut -d. -f1 <<< " $TRAVIS_NODE_VERSION " ) " -le 8 ]]; then
20
+ elif [[ " $( cut -d. -f1 <<< " $NODE_VERSION " ) " -le 8 ]]; then
19
21
yarn install --ignore-engines --ignore-scripts
20
22
# ember requires Node >= 10 to build
21
23
yarn build --ignore=" @sentry/ember" --ignore=" @sentry/serverless" --ignore=" @sentry/gatsby" --ignore=" @sentry/react"
You can’t perform that action at this time.
0 commit comments