Skip to content

Commit 573d6b3

Browse files
committed
feat: add integration tests to CI
1 parent 065b4c0 commit 573d6b3

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ insert_final_newline = true
1515
[{.travis.yml,npm-shrinkwrap.json,package.json}]
1616
indent_style = space
1717
indent_size = 4
18+
19+
[.github/{workflows,actions}/*.yml]
20+
indent_style = space
21+
indent_size = 2

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,44 @@ jobs:
190190
- name: Run spell check
191191
run: npm run spell-check
192192

193+
integration-tests:
194+
name: Integration Tests
195+
runs-on: ubuntu-latest
196+
timeout-minutes: 20
197+
permissions:
198+
id-token: write
199+
contents: read
200+
packages: read
201+
steps:
202+
- name: Checkout
203+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
204+
205+
- name: Setup Node.js
206+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
207+
with:
208+
cache: 'npm'
209+
node-version: ${{ env.NODE_VERSION }}
210+
registry-url: 'https://npm.pkg.github.com'
211+
scope: '@deepnote'
212+
213+
- name: Setup Python
214+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
215+
with:
216+
python-version: '3.12'
217+
218+
- name: Install dependencies
219+
run: npm ci --prefer-offline --no-audit
220+
env:
221+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
222+
223+
- name: Compile TypeScript
224+
run: npm run compile
225+
226+
- name: Run integration tests
227+
run: xvfb-run -a -s "-screen 0 1024x768x24" npm run test:integration
228+
# env:
229+
# VSC_JUPYTER_CI_TEST_GREP: 'Deepnote Integration Tests'
230+
193231
audit-prod:
194232
name: Audit - Production
195233
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)