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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
55 changes: 11 additions & 44 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,33 @@
name: ci
on:
pull_request:
branches: [main, staging]
workflow_dispatch:
branches: [ main, staging ]

jobs:
build:
name: Running ci
if:
"!contains(toJSON(github.event.commits.*.message), 'chore(release):') &&
github.event.pull_request.draft != true"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
node-version: [ 18 ]
env:
CI: true
defaults:
run:
working-directory: ./frontend

steps:
- name: 🛒 Checkout code
uses: actions/checkout@v3

- name: Enable corepack
run: corepack enable

- name: 💿 Setup Nodejs
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: 💾 Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: 💾 Cache
uses: actions/cache@v3
id: yarn-cache
- name: 🧩 Setup Bun
uses: oven-sh/setup-bun@v2
with:
path: |
frontend/.cache/Cypress
frontend/cypress/cache
frontend/node_modules
${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-frontend-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-frontend-yarn
bun-version: latest

- name: 🧩 Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install --inline-builds

- name: Install 'shared' directory
run: |
cd ../shared
yarn install
yarn build
cd ../frontend
run: bun install

- name: ✏️ Lint
run: yarn lint:ts
- name: ✏️ Typecheck
run: bun run typecheck

- name: 🧪 Test
run: yarn test --passWithNoTests
# We currently do not run the linter as we have too many issues.
# - name: 🧪 Lint
# run: bun run lint
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ node_modules
dist
dist-ssr
*.local
**/.env
apps/api/.env

# Editor directories and files
.vscode/*
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bun lint-staged --allow-empty
34 changes: 0 additions & 34 deletions api/.eslintrc.js

This file was deleted.

1 change: 0 additions & 1 deletion api/.husky/pre-commit

This file was deleted.

29 changes: 0 additions & 29 deletions api/.prettierignore

This file was deleted.

17 changes: 0 additions & 17 deletions api/.prettierrc

This file was deleted.

1 change: 0 additions & 1 deletion api/.yarnrc.yml

This file was deleted.

2,463 changes: 0 additions & 2,463 deletions api/bun.lock

This file was deleted.

Binary file removed api/bun.lockb
Binary file not shown.
138 changes: 0 additions & 138 deletions api/src/api/services/phases/lastRampStateOnramp.json

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 3 additions & 12 deletions api/package.json → apps/api/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "vortex-signer-service",
"name": "vortex-backend",
"version": "1.0.0",
"description": "",
"author": "Pendulum Chain",
Expand All @@ -8,18 +8,14 @@
"node": ">=12"
},
"scripts": {
"lint": "eslint ./src/**/*.ts --ignore-path .gitignore --ignore-pattern internals/scripts",
"lint:fix": "eslint . --ext .ts,.tsx --fix",
"lint:ts": "tsc --noEmit",
"build": "bun run swc src -d dist --strip-leading-paths",
"serve": "bun dist/index.js",
"start": "bun run build && bun run serve",
"dev": "bun --watch src/index.ts",
"test": "bun test",
"migrate": "bun -r @swc-node/register src/database/migrator.ts",
"migrate:revert": "bun -r @swc-node/register src/database/migrator.ts revert-all",
"seed:phase-metadata": "bun -r @swc-node/register src/database/seeders/phase-metadata.ts",
"prepare": "cd .. && husky ./husky"
"seed:phase-metadata": "bun -r @swc-node/register src/database/seeders/phase-metadata.ts"
},
"dependencies": {
"@pendulum-chain/api-solang": "^0.7.2",
Expand Down Expand Up @@ -55,7 +51,7 @@
"pg-hstore": "^2.3.4",
"sequelize": "^6.37.6",
"sequelize-cli": "^6.6.2",
"shared": "link:shared",
"@packages/shared": "workspace:*",
"siwe": "^2.3.2",
"stellar-sdk": "^13.1.0",
"umzug": "^3.8.2",
Expand Down Expand Up @@ -90,10 +86,5 @@
"nodemon": "^2.0.1",
"prettier": "^2.8.7",
"typescript": "^5.7.2"
},
"packageManager": "bun@4.4.1",
"lint-staged": {
"*.{js,ts}": "eslint --cache --fix",
"*": "prettier --write"
}
}
Loading
Loading