-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # docs/Reference/Server.md # fastify.js # package.json
- Loading branch information
Showing
59 changed files
with
518 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
name: ci Alternative Runtimes | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- next | ||
- 'v*' | ||
paths-ignore: | ||
- 'docs/**' | ||
- '*.md' | ||
pull_request: | ||
paths-ignore: | ||
- 'docs/**' | ||
- '*.md' | ||
|
||
# This allows a subsequently queued workflow run to interrupt previous runs | ||
concurrency: | ||
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test-unit: | ||
runs-on: ${{ matrix.os }} | ||
permissions: | ||
contents: read | ||
strategy: | ||
matrix: | ||
node-version: [18, 20] | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
include: | ||
- runtime: nsolid | ||
node-version: 18 | ||
nsolid-version: 5 | ||
- runtime: nsolid | ||
node-version: 20 | ||
nsolid-version: 5 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- uses: nodesource/setup-nsolid@v1 | ||
if: ${{ matrix.runtime == 'nsolid' }} | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
nsolid-version: ${{ matrix.nsolid-version }} | ||
|
||
- name: Install | ||
run: | | ||
npm install --ignore-scripts | ||
- name: Run tests | ||
run: | | ||
npm run unit | ||
test-typescript: | ||
runs-on: 'ubuntu-latest' | ||
permissions: | ||
contents: read | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- uses: nodesource/setup-nsolid@v1 | ||
with: | ||
node-version: 20 | ||
nsolid-version: 5 | ||
|
||
- name: Install | ||
run: | | ||
npm install --ignore-scripts | ||
- name: Run typescript tests | ||
run: | | ||
npm run test:typescript | ||
env: | ||
NODE_OPTIONS: no-network-family-autoselection | ||
|
||
package: | ||
needs: | ||
- test-typescript | ||
- test-unit | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- uses: nodesource/setup-nsolid@v1 | ||
with: | ||
nsolid-version: 5 | ||
- name: install fastify | ||
run: | | ||
npm install --ignore-scripts | ||
- name: install webpack stack | ||
run: | | ||
cd test/bundler/webpack && npm install | ||
- name: Test webpack bundle | ||
run: | | ||
cd test/bundler/webpack && npm run test | ||
- name: install esbuild stack | ||
run: | | ||
cd test/bundler/esbuild && npm install | ||
- name: Test esbuild bundle | ||
run: | | ||
cd test/bundler/esbuild && npm run test | ||
automerge: | ||
if: > | ||
github.event_name == 'pull_request' && | ||
github.event.pull_request.user.login == 'dependabot[bot]' | ||
needs: | ||
- test-typescript | ||
- test-unit | ||
- package | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
contents: write | ||
steps: | ||
- uses: fastify/github-action-merge-dependabot@v3 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: integration Alternative Runtimes | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- next | ||
- 'v*' | ||
paths-ignore: | ||
- 'docs/**' | ||
- '*.md' | ||
pull_request: | ||
paths-ignore: | ||
- 'docs/**' | ||
- '*.md' | ||
|
||
jobs: | ||
install-production: | ||
runs-on: ${{ matrix.os }} | ||
permissions: | ||
contents: read | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
runtime: [nsolid] | ||
node-version: [18, 20] | ||
pnpm-version: [8] | ||
include: | ||
- nsolid-version: 5 | ||
node-version: 18 | ||
runtime: nsolid | ||
- nsolid-version: 5 | ||
node-version: 20 | ||
runtime: nsolid | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- uses: nodesource/setup-nsolid@v1 | ||
if: ${{ matrix.runtime == 'nsolid' }} | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
nsolid-version: ${{ matrix.nsolid-version }} | ||
|
||
- name: Install Pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: ${{ matrix.pnpm-version }} | ||
|
||
- name: Install Production | ||
run: | | ||
pnpm install --prod | ||
- name: Run server | ||
run: | | ||
node integration/server.js & | ||
- name: Test | ||
if: ${{ success() }} | ||
run: | | ||
bash integration/test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ node-arg: --allow-natives-syntax | |
|
||
files: | ||
- 'test/**/*.test.js' | ||
- 'test/**/*.test.mjs' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.