|
74 | 74 | strategy:
|
75 | 75 | fail-fast: false
|
76 | 76 | matrix:
|
77 |
| - node-version: [10.x, 12.x, 14.x, 16.x, 18.x] |
| 77 | + node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x] |
78 | 78 |
|
79 | 79 | name: Test Node ${{ matrix.node-version }}
|
80 | 80 | runs-on: ubuntu-latest
|
|
88 | 88 | node-version: ${{ matrix.node-version }}
|
89 | 89 |
|
90 | 90 | - run: npm install
|
91 |
| - env: |
92 |
| - SENTRYCLI_LOCAL_CDNURL: 'http://localhost:8999/' |
93 | 91 |
|
94 | 92 | # older node versions need an older nft
|
95 | 93 | - run: npm install @vercel/[email protected]
|
96 | 94 | if: matrix.node-version == '10.x' || matrix.node-version == '12.x'
|
97 | 95 |
|
98 | 96 | - run: npm test
|
99 |
| - |
100 |
| - test_install: |
101 |
| - # Don't run install test on release branches, as at this point binaries were not published to CDN yet. |
102 |
| - if: ${{ !startsWith(github.ref, 'refs/heads/release/') }} |
103 |
| - |
104 |
| - strategy: |
105 |
| - fail-fast: false |
106 |
| - matrix: |
107 |
| - node-version: [10.x, 12.x, 14.x, 16.x, 18.x] |
108 |
| - |
109 |
| - name: Test install script on Node ${{ matrix.node-version }} |
110 |
| - runs-on: ubuntu-latest |
111 |
| - |
112 |
| - steps: |
113 |
| - - uses: actions/checkout@v2 |
114 |
| - with: |
115 |
| - path: sentry-cli-dep |
116 |
| - |
117 |
| - - name: Use Node.js ${{ matrix.node-version }} |
118 |
| - uses: actions/setup-node@v1 |
119 |
| - with: |
120 |
| - node-version: ${{ matrix.node-version }} |
121 |
| - |
122 |
| - - name: Setup empty test app |
123 |
| - run: mkdir test-app && cd test-app && npm init --yes |
124 |
| - |
125 |
| - - name: Install @sentry/cli |
126 |
| - run: npm install ../sentry-cli-dep --install-links |
127 |
| - working-directory: ./test-app |
128 |
| - |
129 |
| - - name: Ensure binary can be called from paths |
130 |
| - run: | |
131 |
| - node_modules/.bin/sentry-cli help |
132 |
| - node_modules/@sentry/cli/sentry-cli help |
133 |
| - working-directory: ./test-app |
134 |
| - |
135 |
| - - name: Install @sentry/cli globally |
136 |
| - run: npm install ./sentry-cli-dep --install-links -g |
137 |
| - |
138 |
| - - name: Ensure binary is installed globally |
139 |
| - run: sentry-cli help |
0 commit comments