Skip to content

Commit

Permalink
Merge remote-tracking branch origin/master into incremental-delivery-…
Browse files Browse the repository at this point in the history
…adjustments
  • Loading branch information
n1ru4l committed Dec 20, 2024
2 parents 102fa19 + 5ecdb9d commit d51d24a
Show file tree
Hide file tree
Showing 446 changed files with 9,127 additions and 68,967 deletions.
3 changes: 3 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
"useCalculatedVersion": true,
"prereleaseTemplate": "{tag}-{datetime}-{commit}"
},
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"updateInternalDependents": "always"
},
"ignore": ["website"]
}
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module.exports = {
'no-dupe-class-members': 'off',
'dot-notation': 'off',
'no-use-before-define': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-namespace': 'off',
Expand Down
59 changes: 0 additions & 59 deletions .github/workflows/benchmark.yml

This file was deleted.

70 changes: 0 additions & 70 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

20 changes: 4 additions & 16 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
dependencies:
uses: the-guild-org/shared-config/.github/workflows/changesets-dependencies.yaml@main
Expand All @@ -20,22 +23,7 @@ jobs:
with:
npmTag: alpha
buildScript: build
nodeVersion: 18
secrets:
githubToken: ${{ secrets.GUILD_BOT_TOKEN }}
npmToken: ${{ secrets.NODE_AUTH_TOKEN }}

release-candidate:
permissions:
contents: read
id-token: write
uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main
if: ${{ github.event.pull_request.title == 'Upcoming Release Changes' }}
with:
npmTag: rc
buildScript: build
restoreDeletedChangesets: true
nodeVersion: 18
nodeVersion: 22
secrets:
githubToken: ${{ secrets.GUILD_BOT_TOKEN }}
npmToken: ${{ secrets.NODE_AUTH_TOKEN }}
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
stable:
permissions:
Expand All @@ -12,7 +15,7 @@ jobs:
uses: the-guild-org/shared-config/.github/workflows/release-stable.yml@main
with:
releaseScript: release
nodeVersion: 18
nodeVersion: 22
secrets:
githubToken: ${{ secrets.GUILD_BOT_TOKEN }}
npmToken: ${{ secrets.NODE_AUTH_TOKEN }}
120 changes: 32 additions & 88 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,61 +5,53 @@ env:
NODE_OPTIONS: '--max-old-space-size=8192'
CI: true

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
- master
pull_request:

jobs:
prettier-check:
name: 🧹 Prettier Check
typecheck-15:
name: Type Check on GraphQL v15
runs-on: ubuntu-latest
steps:
- name: Checkout Master
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Setup env
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 18

- name: Prettier Check
run: yarn prettier:check
lint:
name: Lint
uses: the-guild-org/shared-config/.github/workflows/lint.yml@main
with:
script: yarn ci:lint
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
nodeVersion: 22

build:
name: Type Check on GraphQL v${{matrix.graphql_version}}
- name: Use GraphQL v15
run: node ./scripts/match-graphql.js 15
- name: Install Dependencies using Yarn
run: yarn install --ignore-engines && git checkout yarn.lock
- name: Type Check
run: yarn ts:check
check:
name: Full Check on GraphQL v16
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
graphql_version:
- 15
- 16
- '17.0.0-alpha.1'
steps:
- name: Checkout Master
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4

uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup env
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 18

- name: Use GraphQL v${{matrix.graphql_version}}
run: node ./scripts/match-graphql.js ${{matrix.graphql_version}}
- name: Install Dependencies using Yarn
run: yarn install --ignore-engines && git checkout yarn.lock
- name: Type Check
run: yarn ts:check

nodeVersion: 22
- name: Prettier
run: yarn prettier:check
- name: Lint
run: yarn lint
- name: Build
run: yarn build
- name: Test ESM and CJS integrity
run: yarn bob check
test:
name:
Unit Test on Node ${{matrix.node-version}} (${{matrix.os}}) and GraphQL
Expand All @@ -69,18 +61,17 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest] # remove windows to speed up the tests
node-version: [18, 20, 22]
node-version: [18, 20, 22, 23]
graphql_version:
- 15
- 16
- '17.0.0-alpha.1'
include:
- node-version: 18
os: windows-latest
graphql_version: 16
steps:
- name: Checkout Master
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Setup env
uses: the-guild-org/shared-config/setup@main
Expand All @@ -100,60 +91,13 @@ jobs:
hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{matrix.node-version}}-${{matrix.graphql_version}}-jest-
- name: Test
if: ${{ matrix.node-version >= 20 }}
- name: Build
run: yarn build
- name: Unit Tests
run: yarn test --ci
- name: Test
if: ${{ matrix.node-version < 20 }}
- name: Leak Tests
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
max_attempts: 5
command: yarn test:leaks --ci

trackback:
name: trackback rc dependencies
needs: test
if: ${{ always() }}}
runs-on: ubuntu-latest
steps:
- uses: the-guild-org/shared-config/release-trackback@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
relevantPackages: |
@whatwg-node/*
test_esm:
name: ESM Test
runs-on: ubuntu-latest
steps:
- name: Checkout Master
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4

- name: Setup env
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 18

- name: Build Packages
run: yarn build
- name: Test ESM and CJS integrity
run: yarn bob check
test_browser:
name: Browser Test
runs-on: ubuntu-latest
steps:
- name: Checkout Master
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- name: Setup env
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 18
- name: Build Packages
run: yarn build
- name: Test
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
max_attempts: 5
command: TEST_BROWSER=true yarn jest --no-watchman --ci browser
Loading

0 comments on commit d51d24a

Please sign in to comment.