Skip to content

Commit

Permalink
Merge pull request #12 from bleu-fi/pedro/cow-137-add-descriptions-an…
Browse files Browse the repository at this point in the history
…d-links-on-the-menus

Add descriptions and links on the menus
  • Loading branch information
yvesfracari committed Mar 11, 2024
2 parents c396b15 + 9b666c1 commit 3535b2a
Show file tree
Hide file tree
Showing 16 changed files with 2,615 additions and 110 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/setup-pnpm/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 'Setup JS Dependencies'
description: 'Install JS dependencies using PNPM'
inputs:
npm_token:
description: 'NPM token for authentication'
required: true
runs:
using: 'composite'
steps:
- uses: actions/checkout@v2

- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".tool-versions"
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile
shell: bash
env:
NPM_TOKEN: ${{ inputs.npm_token }}
27 changes: 27 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: tests

on:
push:
branches:
- main
pull_request:

jobs:
run-tests:
name: Run tests
runs-on: ubuntu-latest
strategy:
fail-fast: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-test
cancel-in-progress: true
steps:
- uses: actions/checkout@v3

- name: Setup JS dependencies
uses: ./.github/workflows/setup-pnpm
with:
npm_token: ${{ secrets.NPM_TOKEN }}

- name: Run tests
run: pnpm test:jest
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 20.9.0
6 changes: 6 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* eslint-env node */
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
};
6 changes: 6 additions & 0 deletions jest.setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Optional: configure or set up a testing framework before each test.
// If you delete this file, remove `setupFilesAfterEnv` from `jest.config.js`

// Used for __tests__/testing-library.js
// Learn more: https://github.com/testing-library/jest-dom
import "@testing-library/jest-dom";
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@
"lint:fix": "eslint '**/*.{ts,tsx}' --fix",
"link:bleu-ui": "npx yalc link @bleu-fi/ui",
"codegen:check": "graphql-codegen --config codegen.ts --check",
"codegen": "graphql-codegen --config codegen.ts"
"codegen": "graphql-codegen --config codegen.ts",
"test:jest": "pnpm exec jest --passWithNoTests",
"test:watch": "pnpm exec jest --watchAll --verbose"
},
"dependencies": {
"@bleu-fi/ui": "^0.1.33",
"@cowprotocol/app-data": "^1.2.2",
"@hookform/resolvers": "^3.3.4",
"@graphql-codegen/typescript-operations": "^4.2.0",
"@hookform/resolvers": "^3.3.4",
"@radix-ui/colors": "^3.0.0",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-alert-dialog": "^1.0.5",
Expand Down Expand Up @@ -56,6 +58,7 @@
"@safe-global/safe-apps-react-sdk": "^4.7.1",
"@safe-global/safe-apps-sdk": "^9.0.0",
"@safe-global/safe-gateway-typescript-sdk": "^3.18.0",
"@testing-library/jest-dom": "^6.4.2",
"@wagmi/core": "^2.6.5",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
Expand All @@ -64,6 +67,7 @@
"gql": "^1.1.2",
"graphql-request": "6.1.0",
"graphql-tag": "^2.12.6",
"jest-environment-jsdom": "^29.7.0",
"next": "14.1.0",
"next-themes": "^0.2.1",
"npm-run-all": "^4.1.5",
Expand All @@ -77,6 +81,7 @@
"sonner": "^1.4.0",
"tailwind-merge": "^2.2.1",
"tailwindcss-animate": "^1.0.7",
"ts-jest": "^29.1.2",
"vaul": "^0.9.0",
"viem": "^2.7.9",
"vocs": "1.0.0-alpha.38",
Expand All @@ -87,6 +92,7 @@
"@graphql-codegen/typescript-graphql-request": "6.1.0",
"@next/eslint-plugin-next": "^14.1.0",
"@types/dagre": "^0.7.52",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.19",
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
Expand All @@ -104,6 +110,7 @@
"eslint-plugin-react-hooks": "latest",
"eslint-plugin-simple-import-sort": "latest",
"eslint-plugin-tailwindcss": "^3.14.2",
"jest": "^29.7.0",
"postcss": "^8.4.35",
"prettier": "^3.1.1",
"prettier-plugin-tailwindcss": "^0.5.11",
Expand Down
Loading

0 comments on commit 3535b2a

Please sign in to comment.