Skip to content
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

housekeeping #1700

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
42 changes: 0 additions & 42 deletions .changeset/config.json

This file was deleted.

16 changes: 2 additions & 14 deletions .github/actions/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,12 @@ description: "Install dependencies"
runs:
using: "composite"
steps:
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9.4.0

- name: Set up node
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: 20

- name: Set up foundry
uses: foundry-rs/foundry-toolchain@v1

# - name: Install playwright
# shell: bash
# run: npx playwright install --with-deps chromium

- name: Install dependencies
shell: bash
run: pnpm install --ignore-scripts
- name: Set up pnpm
uses: sushi-labs/actions/.github/actions/pnpm@master
83 changes: 0 additions & 83 deletions .github/workflows/changesets.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Chromatic'
name: Chromatic

on:
pull_request:
Expand All @@ -14,9 +14,9 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
submodules: 'recursive'
fetch-depth: 0
- name: Install dependencies
uses: ./.github/actions/install
Expand Down
31 changes: 6 additions & 25 deletions .github/workflows/apps-web-e2e.yml → .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Sushi - apps / web
name: E2E

on:
pull_request:
Expand All @@ -7,11 +7,8 @@ on:
- ".github/workflows/apps-web-e2e.yml"
- "apps/web/**"
- "config/nextjs/**"
- "config/router/**"
- "config/tailwindcss/**"
- "config/typescript/**"
- "config/viem/**"
- "config/wagmi/**"
- "packages/**"
workflow_dispatch:

Expand All @@ -25,38 +22,22 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
e2e:
runs-on: buildjet-4vcpu-ubuntu-2204
test:
runs-on: ubuntu-latest
# runs-on: buildjet-4vcpu-ubuntu-2204
timeout-minutes: 15
strategy:
matrix:
block-number: [61755107]
chain-id: [137]
node-version: [20]
pnpm-version: [9.4.0]
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 2
submodules: true

# Has to be before setup node for caching to work
- uses: pnpm/action-setup@v4
with:
version: ${{ matrix.pnpm-version }}

- name: Setup Node.js
uses: buildjet/setup-node@v3
with:
cache: 'pnpm'
node-version: ${{ matrix.node-version }}

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
submodules: 'recursive'

- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline
uses: ./.github/actions/install

- name: Install Playwright Browsers
run: pnpm playwright install --with-deps chromium
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
name: Sushi - verify
# on:
# workflow_call:
# workflow_dispatch:
name: Verify
on:
workflow_call:
workflow_dispatch:
# pull_request:
# types: [opened, synchronize]
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
Expand Down
1 change: 0 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"VisualStudioExptTeam.vscodeintellicode",
"wix.vscode-import-cost",
"GraphQL.vscode-graphql",
"mattpocock.ts-error-translator",
"bierner.markdown-mermaid",
"biomejs.biome"
]
Expand Down
38 changes: 23 additions & 15 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,33 @@
"version": "0.2.0",
"configurations": [
{
"name": "LOCAL: Minikube",
"profile": "local",
"type": "cloudcode.kubernetes",
"name": "Next.js: debug server-side",
"type": "node-terminal",
"request": "launch",
"skaffoldConfig": "${workspaceFolder}/skaffold.yaml",
"watch": false,
"cleanUp": true,
"portForward": true
"cwd": "${workspaceFolder}/apps/web",
"command": "npm run dev"
},
{
"name": "STAGING: GKE",
"profile": "staging",
"type": "cloudcode.kubernetes",
"name": "Next.js: debug client-side",
"type": "chrome",
"request": "launch",
"skaffoldConfig": "${workspaceFolder}/skaffold.yaml",
"watch": false,
"cleanUp": false,
"portForward": true,
"imageRegistry": "gcr.io/sushi-api-414412"
"url": "http://localhost:3000"
},
{
"name": "Next.js: debug full stack",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}/apps/web",
"program": "${workspaceFolder}/node_modules/.bin/next",
"runtimeArgs": ["--inspect"],
"skipFiles": ["<node_internals>/**"],
"serverReadyAction": {
"action": "debugWithEdge",
"killOnServerStop": true,
"pattern": "- Local:.+(https?://.+)",
"uriFormat": "%s",
"webRoot": "${workspaceFolder}"
}
}
]
}
1 change: 0 additions & 1 deletion apis/token-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"@vercel/node": "3.0.9"
},
"devDependencies": {
"@sushiswap/jest-config": "workspace:*",
"@tsconfig/esm": "1.0.4",
"@tsconfig/strictest": "2.0.2",
"typescript": "5.5.4",
Expand Down
1 change: 0 additions & 1 deletion apis/tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"zod": "3.23.8"
},
"devDependencies": {
"@sushiswap/jest-config": "workspace:*",
"@tsconfig/esm": "1.0.4",
"@tsconfig/strictest": "2.0.2",
"@types/node": "20",
Expand Down
2 changes: 2 additions & 0 deletions apps/web/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ DRPC_ID=

SUSHI_DATA_API_HOST=
NEXT_PUBLIC_SUSHI_DATA_API_HOST=

NODE_OPTIONS=--inspect
1 change: 0 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@
"@next/env": "14.2.11",
"@next/eslint-plugin-next": "14.2.11",
"@playwright/test": "1.45.0",
"@sushiswap/jest-config": "workspace:*",
"@sushiswap/typescript-config": "workspace:*",
"@tsconfig/next": "2.0.1",
"@types/cors": "2.8.13",
Expand Down
1 change: 0 additions & 1 deletion apps/web/test/setup.ts
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
import '@testing-library/jest-dom'
2 changes: 1 addition & 1 deletion config/eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"react/index.js"
],
"dependencies": {
"@vercel/style-guide": "5.0.1",
"@vercel/style-guide": "6.0.0",
"eslint-config-turbo": "2.0.5",
"eslint-plugin-mdx": "2.2.0",
"eslint-plugin-only-warn": "1.1.0",
Expand Down
3 changes: 0 additions & 3 deletions config/jest/README.md

This file was deleted.

19 changes: 0 additions & 19 deletions config/jest/jest-preset.js

This file was deleted.

19 changes: 0 additions & 19 deletions config/jest/node/jest-preset.js

This file was deleted.

Loading
Loading