Skip to content

Commit 66cfba1

Browse files
Add basic e2e tests (#80)
* Version Packages * add basic local fixture tests * add github action to run tests on PRs * delete redundant node example --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent feab875 commit 66cfba1

File tree

22 files changed

+2345
-458
lines changed

22 files changed

+2345
-458
lines changed

.github/workflows/tests.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Tests
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
tests:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '20'
22+
cache: 'npm'
23+
24+
- name: Install dependencies
25+
working-directory: fixtures/basic
26+
run: npm install
27+
28+
- name: Run integration tests
29+
working-directory: fixtures/basic
30+
run: npm run test
31+
timeout-minutes: 10
32+
33+
34+
type-check:
35+
runs-on: ubuntu-latest
36+
37+
steps:
38+
- name: Checkout repository
39+
uses: actions/checkout@v4
40+
41+
- name: Setup Node.js
42+
uses: actions/setup-node@v4
43+
with:
44+
node-version: '20'
45+
cache: 'npm'
46+
47+
- name: Install dependencies
48+
run: npm ci
49+
50+
- name: Type check fixtures
51+
working-directory: fixtures/basic
52+
run: npx tsc --noEmit

example-node/.gitignore

Lines changed: 0 additions & 172 deletions
This file was deleted.

example-node/Dockerfile

Lines changed: 0 additions & 10 deletions
This file was deleted.

example-node/container_src/server.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

example-node/package.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

example-node/src/index.ts

Lines changed: 0 additions & 67 deletions
This file was deleted.

example-node/tsconfig.json

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)