Skip to content
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

Migration to Meteor 3.0 #150

Merged
merged 23 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 0 additions & 79 deletions .circleci/config.yml

This file was deleted.

68 changes: 68 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# the test suite runs the tests (headless, server+client) for multiple Meteor releases
name: Test suite
on:
push:
branches:
- master
pull_request:

jobs:
lint:
name: Javascript standard lint
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3

- name: setup node
uses: actions/setup-node@v3
with:
node-version: 20

- name: cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-20-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-20-

- run: npm ci && npm run lint

test:
name: Meteor package tests
# needs: [lint]
runs-on: ubuntu-latest
strategy:
matrix:
meteorRelease:
- '3.0-beta.0'
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Setup meteor ${{ matrix.meteorRelease }}
uses: meteorengineer/setup-meteor@v1
with:
meteor-release: ${{ matrix.meteorRelease }}

- name: cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-20-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-20-

- name: Install test dependencies
run: |
cd tests/dummy_app
npm ci

- name: Run tests
run: ./test.sh
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"scripts": {
"lint": "eslint ./package",
"lint:fix": "eslint --fix ./package",
"publish": "cd package && semantic-release"
},
"author": "Dispatch Technologies, Inc. (https://www.dispatch.me/)",
Expand Down
30 changes: 15 additions & 15 deletions package/.versions
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
babel-compiler@7.11.0-alpha300.11
babel-compiler@7.10.5
[email protected]
[email protected]
[email protected]
[email protected]-alpha300.11
[email protected].2-alpha300.11
[email protected]
[email protected].1
[email protected]
[email protected]
[email protected].3
[email protected].1
[email protected].4
[email protected].10
[email protected]
meteor@2.0.0-alpha300.11
meteortesting:browser-tests@1.5.3-alpha300.11
meteortesting:mocha@3.0.3-alpha300.11
meteortesting:mocha-core@8.2.2-alpha300.11
[email protected].9
modules@0.19.1-alpha300.11
meteor@1.11.4
meteortesting:browser-tests@1.6.0-beta300.0
meteortesting:mocha@3.1.0-beta300.0
meteortesting:mocha-core@8.3.1-beta300.0
[email protected].10
modules@0.20.0
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
2 changes: 1 addition & 1 deletion package/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function saveCoverage(config, done) {
}

if (typeof Package === 'undefined' || !Package.meteor || !Package.meteor.Meteor || !Package.meteor.Meteor.sendCoverage) {
console.error('Coverage package missing or not correclty launched');
console.error('Coverage package missing or not correctly launched');
done();
return;
}
Expand Down
11 changes: 7 additions & 4 deletions package/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,20 @@ Package.describe({
summary: 'Run Meteor package or app tests with Mocha',
git: 'https://github.com/meteortesting/meteor-mocha.git',
documentation: '../README.md',
version: '3.0.3-beta300.0',
version: '3.1.0-beta300.0',
testOnly: true,
});

Package.onUse(function onUse(api) {
api.use([
'meteortesting:mocha-core@8.2.2-beta300.0',
'[email protected]',
'meteortesting:mocha-core@8.3.1-beta300.0',
'[email protected]'
]);

api.use(['meteortesting:[email protected]', '[email protected] || 2.0.0'], 'server');
api.use([
'meteortesting:[email protected]',
'[email protected] || 2.0.0'
], 'server');
api.use('[email protected]', 'server', { weak: true });
api.use('lmieulet:[email protected] || 2.0.1 || 3.0.0 || 4.1.0', 'client', { weak: true });

Expand Down
15 changes: 0 additions & 15 deletions package/package.json

This file was deleted.

Loading