Skip to content

Commit 3d99265

Browse files
danielebriggiGioee
andauthored
feat(arm): run github actions on arm too (#184) close #183 #189 #190 #194
* feat(arm): run github actions on arm too * fix arm64 test and added fail fast false to prevent jobs in the matrix to be cancelled by random failing tests * update devdeps * arm64 skip browser test * test fix arm64 edge * restore fix browser arm test --------- Co-authored-by: Daniele Briggi <=> Co-authored-by: Gioele Cantoni <gioele.cantoni@gmail.com> Co-authored-by: Gioele Cantoni <48024736+Gioee@users.noreply.github.com>
1 parent fb677a0 commit 3d99265

File tree

4 files changed

+43
-25
lines changed

4 files changed

+43
-25
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@ env:
88

99
jobs:
1010
code-test:
11+
strategy:
12+
max-parallel: 1
13+
matrix:
14+
os: [ubuntu-latest, LinuxARM64]
15+
1116
name: 'Code Test'
1217
timeout-minutes: 20
13-
runs-on: ubuntu-latest
18+
runs-on: ${{ matrix.os }}
19+
1420
steps:
1521
- uses: actions/checkout@v4
1622
- uses: actions/setup-node@v4
@@ -34,8 +40,9 @@ jobs:
3440
examples-test:
3541
needs: code-test
3642
strategy:
43+
fail-fast: false
3744
matrix:
38-
os: [ubuntu-latest, macos-latest, windows-latest]
45+
os: [ubuntu-latest, macos-latest, windows-latest, LinuxARM64]
3946

4047
defaults:
4148
run:
@@ -58,6 +65,7 @@ jobs:
5865
deno-version: v2.x
5966

6067
- name: setup playwright for browser related test
68+
if: matrix.os != 'LinuxARM64'
6169
run: npx playwright install --with-deps && npx playwright install msedge && npx playwright install chrome
6270

6371
- name: build driver
@@ -266,12 +274,14 @@ jobs:
266274
run: rm -rf examples/with-typescript-nextjs
267275

268276
- name: node with-javascript-vite
277+
if: matrix.os != 'LinuxARM64'
269278
working-directory: examples/with-javascript-vite
270279
run: npm i && npx playwright test
271280
env:
272281
VITE_DATABASE_URL: ${{ secrets.CHINOOK_DATABASE_URL }}
273282

274283
- name: bun with-javascript-vite
284+
if: matrix.os != 'LinuxARM64'
275285
working-directory: examples/with-javascript-vite
276286
run: |
277287
if [ "$RUNNER_OS" != "Windows" ]; then
@@ -293,16 +303,17 @@ jobs:
293303
run: rm -rf examples/with-javascript-vite
294304

295305
- name: node with-javascript-browser
306+
if: matrix.os != 'LinuxARM64'
296307
working-directory: examples/with-javascript-browser
297308
run: npm i && node test.cjs
298309

299310
- name: bun with-javascript-browser
300-
if: matrix.os != 'windows-latest' #cannot launch browsers on windows with bash in commonjs?
311+
if: matrix.os != 'windows-latest' && matrix.os != 'LinuxARM64' #cannot launch browsers on windows with bash in commonjs?
301312
working-directory: examples/with-javascript-browser
302313
run: bun i && bun test.cjs
303314

304315
- name: deno with-javascript-browser
305-
if: matrix.os != 'windows-latest' #https://github.com/denoland/deno/issues/23524#issuecomment-2292075726
316+
if: matrix.os != 'windows-latest' && matrix.os != 'LinuxARM64' #https://github.com/denoland/deno/issues/23524#issuecomment-2292075726
306317
uses: nick-fields/retry@v3 #doing this step with the retry action because sometimes in macos it gets stuck without failing
307318
with:
308319
timeout_seconds: 45
@@ -315,6 +326,7 @@ jobs:
315326
rn-ios-test:
316327
needs: code-test
317328
strategy:
329+
fail-fast: false
318330
matrix:
319331
os: [macos-13, macos-14, macos-15] # macos-12 for ios 15 it's going to be deprecated, it's also using an old version of xcode that is not compatible with react native
320332
include:
@@ -373,6 +385,7 @@ jobs:
373385
rn-android-test:
374386
needs: code-test
375387
strategy:
388+
fail-fast: false
376389
matrix:
377390
api-level: [25, 26, 29, 31, 35] #app fail: android 5; driver fail: android 6 and android 7
378391
include:
@@ -440,6 +453,7 @@ jobs:
440453
expo-ios-test:
441454
needs: code-test
442455
strategy:
456+
fail-fast: false
443457
matrix:
444458
os: [macos-13, macos-14, macos-15] # macos-12 for ios 15 it's going to be deprecated, it's also using an old version of xcode that is not compatible with react native
445459
include:
@@ -498,6 +512,7 @@ jobs:
498512
expo-android-test:
499513
needs: code-test
500514
strategy:
515+
fail-fast: false
501516
matrix:
502517
api-level: [25, 26, 29, 31, 35] #app fail: android 5; driver fail: android 6 and android 7
503518
include:

bun.lockb

147 KB
Binary file not shown.

package-lock.json

Lines changed: 19 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sqlitecloud/drivers",
3-
"version": "1.0.400",
3+
"version": "1.0.401",
44
"description": "SQLiteCloud drivers for Typescript/Javascript in edge, web and node clients",
55
"main": "./lib/index.js",
66
"types": "./lib/index.d.ts",
@@ -59,7 +59,7 @@
5959
"devDependencies": {
6060
"@types/jest": "^29.5.14",
6161
"@types/lz4": "^0.6.4",
62-
"@types/node": "^22.10.2",
62+
"@types/node": "^22.13.1",
6363
"@types/whatwg-url": "^13.0.0",
6464
"dotenv": "^16.4.7",
6565
"dotenv-cli": "^8.0.0",
@@ -70,9 +70,9 @@
7070
"sqlite3": "^5.1.7",
7171
"ts-jest": "^29.2.5",
7272
"ts-node": "^10.9.2",
73-
"typedoc": "^0.27.5",
74-
"typedoc-plugin-markdown": "^4.3.3",
75-
"typescript": "^5.7.2",
73+
"typedoc": "^0.27.6",
74+
"typedoc-plugin-markdown": "^4.4.1",
75+
"typescript": "^5.7.3",
7676
"webpack": "^5.97.1",
7777
"webpack-cli": "^6.0.1"
7878
},

0 commit comments

Comments
 (0)