-
-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Meteor 3.0: Adding Async Methods to server #884
base: dev
Are you sure you want to change the base?
Changes from all commits
f5a335e
313e842
00ab6f7
7d4796e
df7a6c9
4f58852
b312ef9
49f3bed
93b7a73
a6c6da3
926e8e2
c811a75
b37aba8
f7bbba1
4af4af6
aac6555
e502124
91fbf48
c7fe2a3
5c31934
743c12f
ff30780
1ea4e38
bf63873
e727ae8
3edc652
f97b4a9
497e8c2
2dfa4de
03e9ac7
c9c00c1
3322531
f75d9f0
64ea577
6da1c60
03f145f
3ec2b73
74286df
011fbbf
7b8d809
0275b16
b29cc0a
a6754e3
0c570ef
e0c3d9c
a91f3cc
d0fb24c
b90c8f6
1df0083
fac13c3
55259c0
e3b241d
9739d69
69cddf9
d573741
22969a0
ed9e253
0d6707e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
lintcode: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '14.x' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should bump to latest Node LTS (22) |
||
|
||
- name: cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
|
||
- run: npm install | ||
- run: npm run lint |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Test suite | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
tests: | ||
name: tests | ||
runs-on: ubuntu-latest | ||
# needs: [lintcode,lintstyle,lintdocs] # we could add prior jobs for linting, if desired | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup meteor | ||
uses: meteorengineer/setup-meteor@v1 | ||
with: | ||
meteor-release: '2.14' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does it make sense to add Matrix tests here? In Meteor Community Packages we do Matrix tests for Major Meteor versions 2.x and 3.x if packages have to support both |
||
|
||
- name: cache dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- run: meteor npm install && meteor npm run test:mocha |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -255,7 +255,13 @@ class FilesCollection extends FilesCollectionCore { | |
Meteor._debug('[FilesCollection] [insert()] Upload is disabled with [disableUpload]!'); | ||
return {}; | ||
} | ||
return (new UploadInstance(config, this))[autoStart ? 'start' : 'manual'](); | ||
const uploadInstance = new UploadInstance(config, this); | ||
if (autoStart) { | ||
uploadInstance.start().catch((error) => { | ||
console.error('[FilesCollection] [insert] Error starting upload:', error); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will this error also go into |
||
}); | ||
} | ||
return uploadInstance; | ||
} | ||
|
||
/** | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All GitHub core actions are in the meantime at version 4