Skip to content
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
4 changes: 2 additions & 2 deletions .github/actions/analyze-comment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ inputs:
PULL_REQUEST_NUMBER:
description: Pull request id in case it does not exist in the context by default
required: false
default: "0"
default: '0'
runs:
using: "composite"
using: 'composite'
steps:
- name: Download PR bundle stats
if: github.event.workflow_run.id
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/cypress/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ inputs:
description: yarn command to run test
required: true
runs:
using: "composite"
using: 'composite'
steps:
- uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/fork-result-comment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ inputs:
PULL_REQUEST_NUMBER:
description: Pull request id
required: false
default: "0"
default: '0'
COMMENT_BODY:
description: Text of the comment
required: true
runs:
using: "composite"
using: 'composite'
steps:
- name: Find Comment
uses: peter-evans/find-comment@1769778a0c5bd330272d749d12c036d65e70d39d # v2.0.0
Expand Down
6 changes: 3 additions & 3 deletions .github/actions/private-ipfs-pin/action.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Pin to private cluster
description: Upload build to ipfs nodes runnning in GKE
description: Upload build to ipfs nodes running in GKE
inputs:
DOMAIN:
description: Domain to unpin
description: Domain to unpin
required: true
GCP_SA_KEY:
description: ''
Expand All @@ -16,7 +16,7 @@ inputs:
BUILD_PATH:
description: path to the build directory
required: true
PINATA_HASH:
PINATA_HASH:
description: ''
required: true
runs:
Expand Down
10 changes: 5 additions & 5 deletions .github/actions/upload-artifacts/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ inputs:
required: false
default: out
PR_INFO:
description: shoud this artifact be uploaded
description: should this artifact be uploaded
required: false
default: "true"
default: 'true'
NEXTJS_BUILD:
description: shoud this artifact be uploaded
description: should this artifact be uploaded
required: false
default: "true"
default: 'true'
runs:
using: "composite"
using: 'composite'
steps:
- name: Save PR number
if: github.event.number && inputs.PR_INFO == 'true'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ concurrency:

on:
pull_request:
branches: ["main"]
branches: ['main']

jobs:
build:
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Build App
uses: ./.github/actions/build
with:
NEXT_PUBLIC_ENV: "prod"
NEXT_PUBLIC_ENV: 'prod'

- name: Upload artifacts
uses: ./.github/actions/upload-artifacts
4 changes: 2 additions & 2 deletions .github/workflows/i18n-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ concurrency:

on:
pull_request:
branches: ["main"]
branches: ['main']
push:
branches: ["main"]
branches: ['main']

jobs:
i18n-check:
Expand Down
29 changes: 14 additions & 15 deletions .github/workflows/test-deploy-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ concurrency:

on:
workflow_run:
workflows: ["Build PR From Fork"]
types: ["completed"]
workflows: ['Build PR From Fork']
types: ['completed']

jobs:
prepare_jobs:
Expand All @@ -22,7 +22,7 @@ jobs:
uses: dawidd6/action-download-artifact@ea71f332a90fd52416b1629b933dcf7e0ccd421d # v2.22.0
with:
workflow: build-fork.yml
run_id: "${{ github.event.workflow_run.id }}"
run_id: '${{ github.event.workflow_run.id }}'
workflow_conclusion: success
name: pr
path: ./
Expand All @@ -46,7 +46,7 @@ jobs:

next_js_analyze:
runs-on: ubuntu-latest
needs: ["prepare_jobs"]
needs: ['prepare_jobs']
env:
PR_NUMBER: ${{ needs.prepare_jobs.outputs.pr_number }}
steps:
Expand All @@ -56,11 +56,11 @@ jobs:

- uses: ./.github/actions/analyze-comment
with:
PULL_REQUEST_NUMBER: "${{ env.PR_NUMBER }}"
PULL_REQUEST_NUMBER: '${{ env.PR_NUMBER }}'

cypress_smoke_v2:
runs-on: ubuntu-latest
needs: ["prepare_jobs"]
needs: ['prepare_jobs']
strategy:
fail-fast: false
matrix:
Expand All @@ -82,7 +82,7 @@ jobs:

cypress_smoke_v3:
runs-on: ubuntu-latest
needs: ["prepare_jobs"]
needs: ['prepare_jobs']
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:

cypress_full_v2:
runs-on: ubuntu-latest
needs: ["deploy_fork"]
needs: ['deploy_fork']
strategy:
fail-fast: false
matrix:
Expand All @@ -169,7 +169,7 @@ jobs:

cypress_full_v3:
runs-on: ubuntu-latest
needs: ["deploy_fork"]
needs: ['deploy_fork']
strategy:
fail-fast: false
matrix:
Expand All @@ -191,7 +191,7 @@ jobs:

cypress_additional_v2:
runs-on: ubuntu-latest
needs: ["deploy_fork"]
needs: ['deploy_fork']
strategy:
fail-fast: false
matrix:
Expand All @@ -212,7 +212,7 @@ jobs:

cypress_additional_v3:
runs-on: ubuntu-latest
needs: ["deploy_fork"]
needs: ['deploy_fork']
strategy:
fail-fast: false
matrix:
Expand All @@ -234,7 +234,7 @@ jobs:

cypress_app_functionality:
runs-on: ubuntu-latest
needs: ["deploy_fork"]
needs: ['deploy_fork']
strategy:
fail-fast: false
matrix:
Expand All @@ -251,7 +251,6 @@ jobs:
CYPRESS_TENDERLY_PROJECT: ${{ secrets.TENDERLY_PROJECT }}
YARN_TEST_COMMAND: npx cypress-repeat run -n 2 --rerun-failed-only --config-file ./cypress/configs/${{ matrix.scoupe }}.config.ts


notify_failure:
runs-on: ubuntu-latest
if: failure()
Expand Down Expand Up @@ -293,5 +292,5 @@ jobs:
with:
PULL_REQUEST_NUMBER: '${{ env.PR_NUMBER }}'
COMMENT_BODY: |
✅ CI run has succeded!
You can find tests and deployment logs at ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
✅ CI run has succeded!
You can find tests and deployment logs at ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
2 changes: 1 addition & 1 deletion .github/workflows/update-prod-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
with:
PINATA_API_KEY: '${{ secrets.PINATA_API_KEY }}'
PINATA_SECRET_KEY: '${{ secrets.PINATA_SECRET_KEY }}'
PIN_ALIAS: "app-aave-staging"
PIN_ALIAS: 'app-aave-staging'
BUILD_LOCATION: './out_staging'
CID_VERSION: 1

Expand Down
22 changes: 22 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# General Ignores
.gitignore
.eslintcache
.eslintignore
node_modules/
public/

# Artifacts
.next/
out/
src/locales/

# IDE
.vscode

# Specific Ignores
*.svg
*.ico
*.json
*.md
*.log
*.lock
30 changes: 18 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "aave-ui",
"version": "1.0.0",
"private": true,
"license": "BSD-3-Clause",
"scripts": {
"dev": "next dev",
"build": "next build",
Expand All @@ -13,8 +14,12 @@
"serve:static": "npx serve out",
"export": "next export",
"start": "next start",
"lint": "next lint",
"lint:fix": "next lint --fix",
"lint:code": "next lint",
"lint:code:fix": "next lint --fix",
"lint:formatting": "prettier src pages scripts cypress . --check",
"lint:formatting:fix": "prettier src pages scripts cypress . --write",
"lint": "yarn lint:code && yarn lint:formatting",
"lint:fix": "yarn lint:code:fix && yarn lint:formatting:fix",
"post-update": "echo \"codesandbox preview only, need an update\" && yarn upgrade --latest",
"i18n:extract": "NODE_ENV=development lingui extract --clean --overwrite --locale en",
"i18n:compile": "lingui compile",
Expand Down Expand Up @@ -128,21 +133,22 @@
"@web3-react/walletlink-connector/@coinbase/wallet-sdk": "3.1.0"
},
"contributors": [
"Pol Sendra <[email protected]>",
"Lukas Strassel <[email protected]>",
"Oleksandr Tkach <[email protected]>",
"David Racero <[email protected]>",
"Anastasia Khovaeva <[email protected]>",
"Andrew Schmidt <[email protected]>",
"Bojan Kopunovic Legetin <[email protected]>",
"David Racero <[email protected]>",
"Diego Prudencio <[email protected]>",
"Drew Cook <[email protected]>",
"Lukas Strassel <[email protected]>",
"Mark Grothe <[email protected]",
"Mark Hinschberger <[email protected]>",
"Nikita Bokarev <[email protected]>",
"Anastasia Khovaeva <[email protected]>",
"Diego Prudencio [email protected]"
"Oleksandr Tkach <[email protected]>",
"Pol Sendra <[email protected]>",
"Vladimir Konstantinovich Yumatov <[email protected]>"
],
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --cache --fix",
"prettier --write"
],
"*": "yarn lint:fix",
"*.svg": "npx svgo --final-newline"
},
"nextBundleAnalysis": {
Expand Down