Skip to content

Commit d24da55

Browse files
authored
test: run integration tests in CI (#1430)
* test: run integration tests in CI * run test:ingration twice * Install deno on integration job * use npm * run puppeteer with no sandbox * run browser integration test twice * trying to fix umd build command * no need to run browser integration twice
1 parent 8d9568c commit d24da55

File tree

6 files changed

+4629
-6
lines changed

6 files changed

+4629
-6
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,44 @@ jobs:
4646
with:
4747
github-token: ${{ secrets.GITHUB_TOKEN }}
4848
path-to-lcov: ./test/coverage/lcov.info
49+
50+
integration:
51+
name: Integration / OS ${{ matrix.os }} / Node ${{ matrix.node }} / Deno ${{ matrix.deno }}
52+
strategy:
53+
matrix:
54+
os: [ubuntu-latest]
55+
node: ['20']
56+
deno: ['2.x']
57+
58+
runs-on: ${{ matrix.os }}
59+
60+
steps:
61+
- uses: actions/checkout@v4
62+
63+
- name: Set up Node
64+
uses: actions/setup-node@v4
65+
with:
66+
node-version: ${{ matrix.node }}
67+
68+
- uses: denoland/setup-deno@v2
69+
with:
70+
deno-version: ${{ matrix.deno }}
71+
72+
- name: Setup Supabase
73+
uses: supabase/setup-cli@v1
74+
with:
75+
version: latest
76+
77+
- name: Start Supabase
78+
run: |
79+
supabase start
80+
81+
- name: Run tests
82+
run: |
83+
npm clean-install
84+
npm run test:integration || npm run test:integration
85+
npm run test:integration:browser
86+
87+
- name: Stop Supabase
88+
run: |
89+
supabase stop

deno.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"nodeModulesDir": "auto"
3+
}

0 commit comments

Comments
 (0)