Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
chore(deps): update all the things (#1327)
Browse files Browse the repository at this point in the history
  • Loading branch information
10xLaCroixDrinker authored Mar 20, 2024
1 parent af987a1 commit e04d9b3
Show file tree
Hide file tree
Showing 173 changed files with 14,309 additions and 19,145 deletions.
33 changes: 31 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,37 @@
{
"root": true,
"extends": "amex",
"plugins": ["es"],
"plugins": [
"es"
],
"parserOptions": {
"babelOptions": {
"presets": [
"@babel/preset-react"
]
}
},
"rules": {
"unicorn/prefer-node-protocol": "error",
"eslint-comments/require-description": [
"error",
{
"ignore": [
"eslint-enable"
]
}
],
"default-param-last": 0
},
"overrides": [
{
"files": [
"__performance__/**"
],
"globals": {
"__ENV": true
}
},
{
"files": [
"**/__mocks__/**"
Expand Down Expand Up @@ -39,4 +68,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
${{ runner.os }}-node-
- name: npm install
run: NODE_ENV=development npm ci
env:
HUSKY: 0
- name: npm unit test
run: npm run test:unit
- name: npm lint test
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/on-pr_dangerJS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
${{ runner.os }}-node-
- name: npm install
run: NODE_ENV=development npm ci
env:
HUSKY: 0
- name: Danger
run: NODE_ENV=production npm run test:danger
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/on-pr_one-app-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
node-version-file: .nvmrc
- name: npm install
run: NODE_ENV=development npm ci
env:
HUSKY: 0
- name: Build docker image
run: docker build -t one-app:at-test . --build-arg USER=root --build-arg VERSION=$(cat .nvmrc)
- name: Run Integration Tests
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release-step-1_manual_create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
npm run release
git add .
git commit -m "docs(changelog): update"
env:
HUSKY: 0
- name: Create release pull request
uses: peter-evans/create-pull-request@v6
with:
Expand Down
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx commitlint --edit $1
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run test:lint && npm run test:unit && npm run test:lockfile
30 changes: 0 additions & 30 deletions __mocks__/express.js

This file was deleted.

33 changes: 0 additions & 33 deletions __mocks__/http.js

This file was deleted.

33 changes: 0 additions & 33 deletions __mocks__/https.js

This file was deleted.

40 changes: 0 additions & 40 deletions __mocks__/node-fetch.js

This file was deleted.

6 changes: 3 additions & 3 deletions __performance__/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:

# receives one-app internals metrics
prometheus:
image: prom/prometheus:v2.49.1
image: prom/prometheus:v2.50.1
networks:
- one-app-performance
volumes:
Expand All @@ -26,7 +26,7 @@ services:

# graphing of metrics
grafana:
image: grafana/grafana:10.0.10
image: grafana/grafana:10.0.12
networks:
- one-app-performance
ports:
Expand All @@ -43,7 +43,7 @@ services:

# runs performance scripts
k6:
image: grafana/k6:0.48.0
image: grafana/k6:0.49.0
networks:
- one-app-performance
ports:
Expand Down
4 changes: 2 additions & 2 deletions __performance__/scripts/load.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
* permissions and limitations under the License.
*/

/* eslint-disable import/no-unresolved */
/* eslint-disable import/no-unresolved -- performance scripts are not ran directly */
import http from 'k6/http';
import { check, sleep } from 'k6';
/* eslint-enable import/no-unresolved */

export const options = {
stages: [
Expand All @@ -30,7 +31,6 @@ export const options = {
},
};

// eslint-disable-next-line no-undef
const { TARGET_URL } = __ENV;

export default function virtualUser() {
Expand Down
5 changes: 2 additions & 3 deletions __performance__/scripts/smoke.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* permissions and limitations under the License.
*/

/* eslint-disable import/no-anonymous-default-export */
/* eslint-disable import/no-unresolved */
/* eslint-disable import/no-unresolved -- performance scripts are not ran directly */
import http from 'k6/http';
import { check, sleep } from 'k6';
/* eslint-enable import/no-unresolved */

// This is a simple smoke test to ensure there is no major regression
// to the one-app server.
Expand All @@ -32,7 +32,6 @@ export const options = {
},
};

// eslint-disable-next-line no-undef
const { TARGET_URL } = __ENV;

export default function virtualUser() {
Expand Down
4 changes: 2 additions & 2 deletions __performance__/scripts/soak.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
* permissions and limitations under the License.
*/

/* eslint-disable import/no-unresolved */
/* eslint-disable import/no-unresolved -- performance scripts are not ran directly */
import http from 'k6/http';
import { check, sleep } from 'k6';
/* eslint-enable import/no-unresolved */

export const options = {
stages: [
Expand All @@ -29,7 +30,6 @@ export const options = {
},
};

// eslint-disable-next-line no-undef
const { TARGET_URL } = __ENV;

export default function virtualUser() {
Expand Down
4 changes: 2 additions & 2 deletions __performance__/scripts/spike.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
* permissions and limitations under the License.
*/

/* eslint-disable import/no-unresolved */
/* eslint-disable import/no-unresolved -- performance scripts are not ran directly */
import http from 'k6/http';
import { check, sleep } from 'k6';
/* eslint-enable import/no-unresolved */

export const options = {
stages: [
Expand All @@ -33,7 +34,6 @@ export const options = {
},
};

// eslint-disable-next-line no-undef
const { TARGET_BASE_URL } = __ENV;

export default function virtualUser() {
Expand Down
4 changes: 2 additions & 2 deletions __performance__/scripts/stress.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
* permissions and limitations under the License.
*/

/* eslint-disable import/no-unresolved */
/* eslint-disable import/no-unresolved -- performance scripts are not ran directly */
import http from 'k6/http';
import { check, sleep } from 'k6';
/* eslint-enable import/no-unresolved */

export const options = {
stages: [
Expand All @@ -35,7 +36,6 @@ export const options = {
},
};

// eslint-disable-next-line no-undef
const { TARGET_BASE_URL } = __ENV;

export default function virtualUser() {
Expand Down
Loading

0 comments on commit e04d9b3

Please sign in to comment.