Skip to content

Commit 702e13e

Browse files
committed
feat: add integration tests to CI
1 parent 7271532 commit 702e13e

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
@@ -167,6 +167,44 @@ jobs:
167167
- name: Check Licenses
168168
run: npm run check-licenses
169169

170+
integration-tests:
171+
name: Integration Tests
172+
runs-on: ubuntu-latest
173+
timeout-minutes: 20
174+
permissions:
175+
id-token: write
176+
contents: read
177+
packages: read
178+
steps:
179+
- name: Checkout
180+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
181+
182+
- name: Setup Node.js
183+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
184+
with:
185+
cache: 'npm'
186+
node-version: ${{ env.NODE_VERSION }}
187+
registry-url: 'https://npm.pkg.github.com'
188+
scope: '@deepnote'
189+
190+
- name: Setup Python
191+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
192+
with:
193+
python-version: '3.12'
194+
195+
- name: Install dependencies
196+
run: npm ci --prefer-offline --no-audit
197+
env:
198+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
199+
200+
- name: Compile TypeScript
201+
run: npm run compile
202+
203+
- name: Run integration tests
204+
run: xvfb-run -a -s "-screen 0 1024x768x24" npm run test:integration
205+
# env:
206+
# VSC_JUPYTER_CI_TEST_GREP: 'Deepnote Integration Tests'
207+
170208
audit-prod:
171209
name: Audit - Production
172210
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)