-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
24,790 additions
and
108 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,20 +1,47 @@ | ||
name: Express Adapter | ||
name: Express adapter tests | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'express/**' | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
branches: [main] | ||
pull_request: {} | ||
|
||
jobs: | ||
specs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [18.x, 20.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ArtiomTr/jest-coverage-report-action@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
# We can't use `cache: npm` because setup-node doesn't support our monorepo setup | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Cache node modules | ||
uses: actions/cache@v2 | ||
with: | ||
working-directory: ./express | ||
annotations: none | ||
path: '**/node_modules' | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} | ||
|
||
- name: Prepare local dependency | ||
run: | | ||
npm install | ||
npm run build | ||
npm link | ||
working-directory: node-core | ||
|
||
- name: Install dependencies & link local dependency | ||
run: | | ||
npm install | ||
npm link judoscale-node-core | ||
working-directory: express | ||
|
||
- name: Run tests | ||
run: npm test | ||
working-directory: express |
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,49 @@ | ||
name: Fastify adapter tests | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: {} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [18.x, 20.x] | ||
fastify-version: [3.x, 4.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
# We can't use `cache: npm` because setup-node doesn't support our monorepo setup | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Cache node modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: '**/node_modules' | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} | ||
|
||
- name: Prepare local dependency | ||
run: | | ||
npm install | ||
npm run build | ||
npm link | ||
working-directory: node-core | ||
|
||
- name: Install dependencies & link local dependency | ||
run: | | ||
npm install | ||
npm install fastify@${{ matrix.fastify-version }} | ||
npm link judoscale-node-core | ||
working-directory: fastify | ||
|
||
- name: Run tests | ||
run: npm test | ||
working-directory: fastify |
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 |
---|---|---|
@@ -1,20 +1,42 @@ | ||
name: Node Core | ||
name: Core adapter tests | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'node-core/**' | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
workflow_dispatch: | ||
pull_request: {} | ||
|
||
jobs: | ||
specs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [18.x, 20.x] | ||
|
||
defaults: | ||
run: | ||
working-directory: node-core | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ArtiomTr/jest-coverage-report-action@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
working-directory: ./node-core | ||
annotations: none | ||
# We can't use `cache: npm` because setup-node doesn't support our monorepo setup | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Cache node modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: '**/node_modules' | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
working-directory: node-core | ||
|
||
- name: Run tests | ||
run: npm test | ||
working-directory: node-core |
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,26 @@ | ||
#!/bin/bash | ||
|
||
# Exit immediately if a command exits with a non-zero status. | ||
set -e | ||
|
||
# Print each command before executing it: | ||
set -x | ||
|
||
cd node-core | ||
npm install | ||
npm link | ||
npm run build | ||
|
||
cd ../express | ||
npm link judoscale-node-core | ||
npm install | ||
npm run build | ||
|
||
cd ../fastify | ||
npm link judoscale-node-core | ||
npm install | ||
|
||
cd ../bull | ||
npm link judoscale-node-core | ||
npm install | ||
npm run build |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.