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/3.0 #95

Open
wants to merge 54 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
d164694
Update legacy-coverage for Meteor 3
StorytellerCZ Jul 16, 2024
49319b0
Update for Meteor 3
StorytellerCZ Jul 16, 2024
8133c2f
Merge pull request #92 from StorytellerCZ/patch-2
jankapunkt Aug 1, 2024
1011656
Merge pull request #91 from StorytellerCZ/patch-1
jankapunkt Aug 1, 2024
8e58167
build(deps): npm dependencies updated and package-lock.json added for ci
jankapunkt Aug 1, 2024
8b78bf3
Merge branch 'migration/3.0' of github.com:serut/meteor-coverage into…
jankapunkt Aug 1, 2024
02c8084
fix(deps): use correct eslint 8.x packages
jankapunkt Aug 1, 2024
2994152
fix: fix eslint-reported errors
jankapunkt Aug 1, 2024
b1c7489
migration: migrate packages to meteor 3
jankapunkt Aug 1, 2024
4a7a111
fix: bump istanbul reporters to get html report running
jankapunkt Aug 1, 2024
19461bc
ci: use meteor npm to install dependencies
jankapunkt Aug 1, 2024
452c590
build: move npm-depends to top of package hooks
jankapunkt Aug 1, 2024
15ca791
build(deps): same deps in package.json and npm.depends
jankapunkt Aug 1, 2024
bc1ac15
fix(ci): remove caching from meteor tests
jankapunkt Aug 1, 2024
15abf49
build(deps): install only dev npm dependencies on test
jankapunkt Aug 1, 2024
6864123
deps: harmize npm versions across packages
jankapunkt Aug 1, 2024
ecce228
ci: try to enable legacy peer deps
jankapunkt Aug 1, 2024
3457723
ci: send lcov to codacy/coveralls/codecov
jankapunkt Aug 1, 2024
2751590
try to fix circle ci
serut Aug 1, 2024
c25d3c3
try to fix circle ci
serut Aug 1, 2024
6fba5aa
wip
serut Aug 1, 2024
8300635
wip
serut Aug 1, 2024
9e3e333
wip
serut Aug 1, 2024
6443ba3
wip
serut Aug 1, 2024
4a08010
wip
serut Aug 1, 2024
115a15a
wip
serut Aug 1, 2024
0f62bac
wip
serut Aug 1, 2024
4667fd0
wip
serut Aug 1, 2024
537dda5
wip
serut Aug 1, 2024
c04fde4
clean code
serut Aug 1, 2024
8234a22
fix lint
serut Aug 1, 2024
2a8bfb5
fix coverage
serut Aug 1, 2024
ea8c53c
wip coverage report
serut Aug 1, 2024
4382ce9
wip codecov
serut Aug 1, 2024
69f0add
fix: remove superfluous property strings in res.json responses for be…
jankapunkt Aug 2, 2024
39ce9e4
fix: uncomment replace COVERAE_APP in generic reporter
jankapunkt Aug 2, 2024
d120866
deps: make package 3.0 only since Router is now express
jankapunkt Aug 3, 2024
4d28851
build: make package 3.0 only
jankapunkt Aug 3, 2024
a637094
fix: add explicit package definition to cover self in local package t…
jankapunkt Aug 6, 2024
97020f0
fix: add .babelrc file to instrument package with istanbul
jankapunkt Aug 6, 2024
72e4a65
fix: instrument require hook and better file info
jankapunkt Aug 6, 2024
5107709
fix: prevent errors when attempting to write read-only fileReports fr…
jankapunkt Aug 6, 2024
dc6081e
fix: make linter happy
jankapunkt Aug 6, 2024
e326021
fix: make linter happy
jankapunkt Aug 6, 2024
210568e
fix: add missing BABEL_ENV to test runner scripts
jankapunkt Aug 6, 2024
557d2f1
docs: update readme
jankapunkt Aug 6, 2024
fecf737
build: prepare for new major release
jankapunkt Aug 6, 2024
8bb68bb
fix: prevent express errors when headers have already been sent
jankapunkt Aug 7, 2024
b8562b7
fix: remove outdated istanbul hook to make work with Meteor 3 app-tests
jankapunkt Aug 20, 2024
03b5116
wip deploy
serut Aug 28, 2024
55e5025
wip
serut Aug 28, 2024
f2bd7fc
fix publish
serut Aug 28, 2024
ef15300
remove lock file
serut Aug 28, 2024
8363168
add package lock
serut Aug 28, 2024
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
7 changes: 7 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"env": {
"COVERAGE": {
"plugins":["istanbul"]
}
}
}
9 changes: 6 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
version: 2
orbs:
browser-tools: circleci/[email protected]
jobs:
build:
docker:
- image: circleci/node:latest-browsers
- image: cimg/node:20.16.0-browsers
working_directory: ~/meteor-coverage
steps:
- checkout
- run: npm install -g meteor
- run: meteor npm install
- run: echo 'export PATH=/home/circleci/.meteor:$PATH' >> $BASH_ENV
- run: npx meteor
- run: meteor npm config set legacy-peer-deps true
- run: mkdir .coverage
- run: meteor npm test
- run: meteor npm run lint || true # ignore eslint error
3 changes: 2 additions & 1 deletion .coverage.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"include": [
"**/packages/lmieulet_meteor-coverage.js"
"**/packages/lmieulet_meteor-coverage.js",
"**/lmieulet:meteor-coverage/**"
]
}
18 changes: 14 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
{
"extends": ["eslint:recommended"],
"plugins": ["babel", "mocha", "import"],
"parser": "babel-eslint",
"plugins": ["mocha", "import"],
"parser": "@babel/eslint-parser",
"env":{
"es6": true
"es6": true,
"mocha": true,
"meteor": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
"sourceType": "module",
"requireConfigFile": false,
"babelOptions": {
"babelrc": false,
"configFile": false,
// your babel options
"presets": ["@babel/preset-env"]
}
},
"ignorePatterns": ["someapp/**/*"],
"rules": {
"no-useless-escape": [0],
"consistent-return": [0],
Expand Down
33 changes: 22 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
name: Meteor package tests
# needs: [lint]
runs-on: ubuntu-latest
# allow usage of CODACY / CODECOV tokens
environment: coverage
strategy:
matrix:
meteorRelease:
Expand All @@ -53,17 +55,26 @@ jobs:
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: npm ci

run: |
meteor --version
meteor npm -v
npm -v
meteor npm config set legacy-peer-deps true
meteor npm cache clean --force
npm install -g coveralls codecov.io codacy-coverage
npm ci

- name: Run tests
run: meteor npm run test
run: |
npm run test
sed 's/packages\/meteor-coverage\///' someapp/.coverage/lcov.info | codacy-coverage || true # ignore codacy error
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}

- name: Codecov
uses: codecov/[email protected]
with:
# Repository Codecov token. Used to authorize report uploads
token: ${{ secrets.CODECOV_TOKEN }}
file: someapp/.coverage/lcov.info
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

63 changes: 33 additions & 30 deletions .versions
Loading
Loading