Skip to content

Commit 4242505

Browse files
committed
ADD svelte example to ci #3287
1 parent e4b3298 commit 4242505

File tree

4 files changed

+49
-17
lines changed

4 files changed

+49
-17
lines changed

.github/workflows/main.yml

+27
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,33 @@ jobs:
282282
working-directory: ./examples/vue
283283
run: npm run test
284284

285+
svelte:
286+
runs-on: ubuntu-18.04
287+
steps:
288+
- uses: actions/checkout@v2
289+
- name: install dependencies
290+
run: sudo apt-get update && sudo apt-get install -y chromium-browser
291+
- name: Setup Node.js environment
292+
uses: actions/[email protected]
293+
with:
294+
node-version: 16.5.0
295+
- name: prepare core
296+
run: |
297+
npm install --legacy-peer-deps
298+
npm run build
299+
rm -r node_modules
300+
- name: svelte build
301+
working-directory: ./examples/svelte
302+
run: |
303+
npm install --legacy-peer-deps
304+
npm run build
305+
306+
- name: svelte test
307+
uses: GabrielBB/xvfb-action@v1
308+
with:
309+
working-directory: ./examples/svelte
310+
run: npm run test
311+
285312
graphql:
286313
runs-on: ubuntu-18.04
287314
steps:

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
### X.X.X (coming soon)
44

5+
Other:
6+
- Added svelte example [#3287](https://github.com/pubkey/rxdb/pull/3287) Thanks [@bkeating](https://github.com/bkeating)
7+
58
### 10.0.3 (9 August 2021)
69

710
Bugfixes:

examples/svelte/package.json

+18-16
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,27 @@
66
"build": "rollup -c",
77
"dev": "rollup -c -w",
88
"start": "sirv public --no-clear",
9-
"test": "testcafe chrome -e test/ --hostname localhost --selector-timeout 8000"
9+
"test:e2e": "testcafe chrome -e test/ --hostname localhost --selector-timeout 8000",
10+
"test": "npm run build && concurrently \"npm run start\" \"npm run test:e2e\" --kill-others --success first"
1011
},
1112
"devDependencies": {
12-
"@rollup/plugin-commonjs": "^17.0.0",
13-
"@rollup/plugin-node-resolve": "^11.0.0",
14-
"async-test-util": "^1.7.3",
15-
"pouchdb-adapter-idb": "^7.2.2",
16-
"rollup": "^2.3.4",
17-
"rollup-plugin-css-only": "^3.1.0",
18-
"rollup-plugin-livereload": "^2.0.0",
19-
"rollup-plugin-node-builtins": "^2.1.2",
20-
"rollup-plugin-svelte": "^7.0.0",
21-
"rollup-plugin-terser": "^7.0.0",
22-
"rxdb": "^9.21.0",
23-
"rxjs": "^7.2.0",
24-
"svelte": "^3.0.0",
25-
"testcafe": "^1.15.2"
13+
"@rollup/plugin-commonjs": "17.0.0",
14+
"@rollup/plugin-node-resolve": "11.0.0",
15+
"async-test-util": "1.7.3",
16+
"pouchdb-adapter-idb": "7.2.2",
17+
"rollup": "2.3.4",
18+
"rollup-plugin-css-only": "3.1.0",
19+
"rollup-plugin-livereload": "2.0.0",
20+
"rollup-plugin-node-builtins": "2.1.2",
21+
"concurrently": "6.2.1",
22+
"rollup-plugin-svelte": "7.0.0",
23+
"rollup-plugin-terser": "7.0.0",
24+
"rxdb": "9.21.0",
25+
"rxjs": "7.2.0",
26+
"svelte": "3.0.0",
27+
"testcafe": "1.15.2"
2628
},
2729
"dependencies": {
28-
"sirv-cli": "^1.0.0"
30+
"sirv-cli": "1.0.0"
2931
}
3032
}

examples/vue/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"build:serve": "ws -p 8888 -d dist/",
1515
"lint": "vue-cli-service lint",
1616
"test:run": "testcafe chrome -e test/ --hostname localhost --selector-timeout 30000",
17-
"test": "concurrently \"npm run build:serve \" \"npm run test:run\" --kill-others --success first"
17+
"test": "concurrently \"npm run build:serve\" \"npm run test:run\" --kill-others --success first"
1818
},
1919
"dependencies": {
2020
"async-test-util": "1.7.3",

0 commit comments

Comments
 (0)