Skip to content

issue: [2717] coverage calculation improvments #2731

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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
474f7f4
coverage calculation improvments
May 23, 2024
1562c2c
updated changeset
DanteUkraine May 24, 2024
7cf40bf
Upgrade pnpm, bump Node engine and Yoga to version 5 (#2719)
TuvalSimha May 16, 2024
ecb9cfe
chore(release): update monorepo packages versions (#2727)
github-actions[bot] May 16, 2024
ea6785e
Test release: fix the release for config and loaders (#2733)
TuvalSimha May 26, 2024
a76766b
chore(release): update monorepo packages versions (#2734)
github-actions[bot] May 26, 2024
b32d5c2
Fix package version number (#2736)
TuvalSimha May 26, 2024
a7de909
chore(release): update monorepo packages versions (#2737)
github-actions[bot] May 26, 2024
e55d14d
Fix packages version for loaders + config (#2738)
TuvalSimha May 26, 2024
9a373d3
chore(release): update monorepo packages versions (#2739)
github-actions[bot] May 26, 2024
3abe4de
Fix loaders package version (#2740)
TuvalSimha May 26, 2024
8c3e1d9
chore(release): update monorepo packages versions (#2741)
github-actions[bot] May 26, 2024
ccc216a
chore(deps): update dependency typescript to v5.4.5 (#2726)
renovate[bot] May 26, 2024
43fe1dd
chore(deps): update dependency node to v20 (#2729)
renovate[bot] May 26, 2024
300046f
fix(deps): update graphql-tools (#2742)
renovate[bot] May 26, 2024
4949ea5
fix(deps): update dependency probot to v12.3.3 [security] (#2675)
renovate[bot] May 26, 2024
a3d0377
chore(deps): update dependency @changesets/cli to v2.27.3 (#2670)
renovate[bot] May 26, 2024
5844640
chore(deps): update dependency @types/body-parser to v1.19.5 (#2665)
renovate[bot] May 26, 2024
0009df8
chore(deps): update dependency @theguild/tailwind-config to v0.4.2 (#…
renovate[bot] May 26, 2024
38ded1d
chore(deps): update dependency @types/express to v4.17.21 (#2668)
renovate[bot] May 26, 2024
bb3f79e
Update all packages dependencies versions (#2747)
TuvalSimha May 26, 2024
e679de1
Docker: fix release flow (#2750)
TuvalSimha May 26, 2024
af66d3e
Fix Docker file release (#2751)
TuvalSimha May 26, 2024
5abf3ac
chore(release): update monorepo packages versions (#2743)
github-actions[bot] May 26, 2024
fabdab9
chore(deps): update dependency eslint to v8.57.0 (#2752)
renovate[bot] May 26, 2024
b22be15
chore(deps): update react monorepo (#2753)
renovate[bot] May 26, 2024
af3afa2
chore(deps): update dependency @types/react to v18.3.3 (#2754)
renovate[bot] May 27, 2024
703a381
fix: formatted with prettier
DanteUkraine May 27, 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: 6 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "kamilkisiela/graphql-inspector" }],
"changelog": [
"@changesets/changelog-github",
{
"repo": "kamilkisiela/graphql-inspector"
}
],
"commit": false,
"access": "restricted",
"baseBranch": "master",
Expand Down
5 changes: 5 additions & 0 deletions .changeset/dry-cougars-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-inspector/coverage-command': major
---

Extended operations coverage calculations
26 changes: 0 additions & 26 deletions .changeset/funny-cougars-mate.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/khaki-spies-smile.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/kind-cherries-lay.md

This file was deleted.

2 changes: 2 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ module.exports = {
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-var-requires': 'off',
'n/no-restricted-import': 'off',
'@typescript-eslint/prefer-optional-chain': 'off',
'yml/no-empty-mapping-value': 'off',
'@typescript-eslint/parser': 'off',
'no-undef': 'off',
'unicorn/prefer-node-protocol': 'off',
'no-console': 'off',
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [16, 18]
node_version: [18, 20]
env:
CI: true

Expand All @@ -28,8 +28,6 @@ jobs:

- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 8.9.2

- name: Get pnpm cache - Set output
id: pnpm-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: pr
on:
pull_request:
branches:
- master
- 'master'

jobs:
release:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ name: release
on:
push:
branches:
- master
- 'master'

jobs:
stable:
uses: the-guild-org/shared-config/.github/workflows/release-stable.yml@main
with:
releaseScript: release
nodeVersion: 18
packageManager: pnpm
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
npmToken: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
save-exact=true
enable-pre-post-scripts=false
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ website/src/pages/docs/api/schema.mdx
pnpm-lock.yaml
website/src/pages/docs/migration-guides/from-graphql-cli.mdx
packages/core/CHANGELOG.md
packages/**/*.md
packages/**/*.md
25 changes: 14 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
FROM node:18-alpine AS build
FROM node:20-alpine AS build
ENV NODE_ENV=development
ENV DISTDIR=/usr/local/share/graphql-inspector

WORKDIR /app

COPY . .

RUN npm install -g pnpm
RUN npm install -g pnpm@9.1.1
RUN pnpm install
RUN pnpm build

FROM node:18-alpine AS dist
FROM node:20-alpine AS dist
ENV NODE_ENV=production

COPY --from=build /app/packages "${DISTDIR}"/packages
COPY --from=build /app/package.json ${DISTDIR}
ENV DISTDIR=/usr/local/share/graphql-inspector

RUN mkdir /app
WORKDIR /app

RUN npm install -g pnpm
COPY --from=build /app/packages "${DISTDIR}/packages"
COPY --from=build /app/package.json ${DISTDIR}
COPY --from=build /app/pnpm-workspace.yaml ${DISTDIR}

RUN npm install -g [email protected]

WORKDIR ${DISTDIR}
RUN pnpm install --prod
RUN pnpm store prune

RUN echo ${DISTDIR} \ cd ${DISTDIR} \
&& pnpm install \
&& pnpm cache clean \
&& ln -s "${DISTDIR}"/packages/cli/dist/cjs/index.js /usr/local/bin/graphql-inspector \
RUN ln -s "${DISTDIR}/packages/cli/dist/cjs/index.js" /usr/local/bin/graphql-inspector \
&& chmod +x /usr/local/bin/graphql-inspector
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ outputs:
changes:
description: Total number of changes
runs:
using: node16
using: node20
main: action/index.js
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
},
"license": "MIT",
"private": true,
"packageManager": "pnpm@8.11.0",
"packageManager": "pnpm@9.1.1",
"engines": {
"node": ">=16.0.0",
"pnpm": ">=8.9.2"
"node": ">=18.0.0",
"pnpm": ">=9.1.1"
},
"keywords": [
"graphql",
Expand All @@ -41,19 +41,19 @@
"test": "vitest"
},
"dependencies": {
"@sentry/node": "7.74.1",
"@sentry/tracing": "7.74.1",
"@whatwg-node/fetch": "0.9.13",
"@sentry/node": "8.4.0",
"@sentry/tracing": "7.114.0",
"@whatwg-node/fetch": "0.9.17",
"husky": "8.0.3",
"immer": "10.0.2",
"immer": "10.1.1",
"js-yaml": "4.1.0",
"probot": "12.3.1",
"probot": "12.3.3",
"shelljs": "0.8.5",
"yargs": "17.7.2"
},
"devDependencies": {
"@changesets/changelog-github": "0.4.8",
"@changesets/cli": "2.26.2",
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.3",
"@graphql-inspector/audit-command": "workspace:*",
"@graphql-inspector/code-loader": "workspace:*",
"@graphql-inspector/commands": "workspace:*",
Expand All @@ -71,27 +71,27 @@
"@graphql-inspector/similar-command": "workspace:*",
"@graphql-inspector/url-loader": "workspace:*",
"@graphql-inspector/validate-command": "workspace:*",
"@theguild/eslint-config": "0.11.0",
"@theguild/prettier-config": "2.0.1",
"@types/body-parser": "1.19.4",
"@theguild/eslint-config": "0.11.9",
"@theguild/prettier-config": "2.0.6",
"@types/body-parser": "1.19.5",
"@types/cors": "2.8.17",
"@types/express": "4.17.20",
"@types/node": "20.8.7",
"@types/express": "4.17.21",
"@types/node": "20.12.12",
"@types/yargs": "17.0.32",
"@zeit/ncc": "0.22.3",
"bob-the-bundler": "7.0.1",
"eslint": "8.51.0",
"eslint": "8.57.0",
"graphql": "16.8.1",
"graphql-config": "5.0.3",
"jsesc": "3.0.2",
"lint-staged": "13.2.3",
"lint-staged": "15.2.5",
"lodash": "4.17.21",
"nock": "13.3.4",
"prettier": "3.0.3",
"rimraf": "5.0.5",
"smee-client": "1.2.3",
"nock": "13.5.4",
"prettier": "3.2.5",
"rimraf": "5.0.7",
"smee-client": "2.0.1",
"strip-ansi": "7.1.0",
"typescript": "5.2.2",
"typescript": "5.4.5",
"vitest": "0.34.6"
},
"sideEffects": false,
Expand Down
70 changes: 70 additions & 0 deletions packages/action/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,75 @@
# @graphql-inspector/action

## 5.0.5

### Patch Changes

- [#2675](https://github.com/kamilkisiela/graphql-inspector/pull/2675)
[`7cf5b11`](https://github.com/kamilkisiela/graphql-inspector/commit/7cf5b110891f6d5a0630da9df7cf1ceeb66473ef)
Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:

- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/probot/v/12.3.3) (from
`12.3.1`, in `dependencies`)

- [#2747](https://github.com/kamilkisiela/graphql-inspector/pull/2747)
[`9c36138`](https://github.com/kamilkisiela/graphql-inspector/commit/9c3613806803343af8e3081ffc6fea243cea72b2)
Thanks [@TuvalSimha](https://github.com/TuvalSimha)! - dependencies updates:
- Updated dependency
[`@actions/[email protected]` ↗︎](https://www.npmjs.com/package/@actions/core/v/1.10.1) (from
`1.10.0`, in `dependencies`)
- Updated dependencies
[[`9c36138`](https://github.com/kamilkisiela/graphql-inspector/commit/9c3613806803343af8e3081ffc6fea243cea72b2)]:
- @graphql-inspector/[email protected]

## 5.0.4

### Patch Changes

- Updated dependencies
[[`12a2208`](https://github.com/kamilkisiela/graphql-inspector/commit/12a2208748d3ef987400e298eb796e9139357a53)]:
- @graphql-inspector/[email protected]

## 5.0.3

### Patch Changes

- Updated dependencies
[[`1600e72`](https://github.com/kamilkisiela/graphql-inspector/commit/1600e723a3bfb9941674d31b49da90e98463b20f)]:
- @graphql-inspector/[email protected]

## 5.0.2

### Patch Changes

- Updated dependencies
[[`87b25d3`](https://github.com/kamilkisiela/graphql-inspector/commit/87b25d32b298efb91213f593ea3fd98f9f4992c4)]:
- @graphql-inspector/[email protected]

## 5.0.1

### Patch Changes

- Updated dependencies
[[`087d3ec`](https://github.com/kamilkisiela/graphql-inspector/commit/087d3ec2056812ee3682e8398d3d255bd7255f5f)]:
- @graphql-inspector/[email protected]

## 5.0.0

### Major Changes

- [#2719](https://github.com/kamilkisiela/graphql-inspector/pull/2719)
[`50874f2`](https://github.com/kamilkisiela/graphql-inspector/commit/50874f2d35d0d5ffda133bb35bb7ce0f8cdb64c3)
Thanks [@TuvalSimha](https://github.com/TuvalSimha)! - Upgrade the Node version from 16 to 18, as
the minimum required version is now 18. Additionally, ensure that GraphQL Yoga is upgraded to
version 5.

### Patch Changes

- Updated dependencies
[[`50874f2`](https://github.com/kamilkisiela/graphql-inspector/commit/50874f2d35d0d5ffda133bb35bb7ce0f8cdb64c3)]:
- @graphql-inspector/[email protected]
- @graphql-inspector/[email protected]

## 4.0.4

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/action/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-inspector/action",
"version": "4.0.4",
"version": "5.0.5",
"type": "module",
"description": "GraphQL Inspector functionality for GitHub Actions",
"repository": {
Expand All @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"bin": {
"graphql-inspector-github": "dist/cjs/index.js"
Expand Down Expand Up @@ -71,17 +71,17 @@
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@actions/core": "1.10.0",
"@actions/core": "1.10.1",
"@actions/github": "4.0.0",
"@graphql-inspector/commands": "workspace:*",
"@graphql-inspector/core": "workspace:*",
"dataloader": "2.2.2",
"js-yaml": "4.1.0",
"probot": "12.3.1",
"probot": "12.3.3",
"tslib": "2.6.2"
},
"devDependencies": {
"@types/js-yaml": "4.0.5"
"@types/js-yaml": "4.0.9"
},
"publishConfig": {
"directory": "dist",
Expand Down
Loading
Loading