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/workflows/frontend-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Frontend Build Check"
name: Frontend Build Check

on:
pull_request:
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: "pnpm"
cache: pnpm

- name: Install dependencies with pnpm
run: pnpm install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: 'pnpm'
cache: pnpm

- name: Install dependencies with pnpm
run: pnpm install
Expand All @@ -40,4 +40,4 @@ jobs:
echo $mrdiff
git diff
exit 1
fi
fi
12 changes: 6 additions & 6 deletions .github/workflows/mainnet-api-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ jobs:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_API_MAIN }}

smoke-tests:
needs: [ deploy-mainnet ]
needs: [deploy-mainnet]
if: needs.deploy-mainnet.result == 'success'
uses: ./.github/workflows/smoke-tests.yml
secrets: inherit
with:
app_name: dither-mainnet-api-main

notify:
needs: [ smoke-tests ]
needs: [smoke-tests]
if: failure()
runs-on: ubuntu-latest
steps:
Expand All @@ -43,13 +43,13 @@ jobs:
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
message: |
🚨 **Smoke Tests Failed** 🚨

🔗 Repository: ${{ github.repository }}
📝 Commit: ${{ github.event.commits[0].message }}
👤 Author: ${{ github.actor }}
⛓️‍💥 App: dither-mainnet-api-main
⚠️ **Failed Tests:**

⚠️ **Failed Tests:**
🔍 [View Logs](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})

Please investigate and fix ASAP! 🔧
6 changes: 3 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
package:
description: "Package name to publish"
description: Package name to publish
required: true
type: choice
options:
Expand All @@ -22,8 +22,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org/"
scope: "@atomone"
registry-url: 'https://registry.npmjs.org/'
scope: '@atomone'

- name: Install pnpm
run: npm install -g pnpm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/retype-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:

- uses: retypeapp/action-github-pages@latest
with:
update-branch: true
update-branch: true
2 changes: 1 addition & 1 deletion .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: 'pnpm'
cache: pnpm

- name: Install dependencies with pnpm
run: pnpm install
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,15 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: 'pnpm'
cache: pnpm

- name: Install dependencies with pnpm
run: pnpm install

- name: Build dependencies
working-directory: packages/api-main
run: pnpm build:deps

- name: Setup database schema
working-directory: packages/api-main
run: pnpm db:push:force
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/testnet-api-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: "pnpm"
cache: pnpm

- name: Install dependencies with pnpm
run: pnpm install
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
pnpm test

deploy-testnet:
needs: [ detect-changes, test ]
needs: [detect-changes, test]
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && needs.detect-changes.outputs.changed == 'true'
runs-on: ubuntu-latest
environment: testnet
Expand All @@ -94,15 +94,15 @@ jobs:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_API_MAIN }}

smoke-tests:
needs: [ deploy-testnet ]
needs: [deploy-testnet]
if: needs.deploy-testnet.result == 'success'
uses: ./.github/workflows/smoke-tests.yml
secrets: inherit
with:
app_name: dither-testnet-api-main

notify:
needs: [ smoke-tests ]
needs: [smoke-tests]
if: failure()
runs-on: ubuntu-latest
steps:
Expand All @@ -112,13 +112,13 @@ jobs:
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
message: |
🚨 **Smoke Tests Failed** 🚨

🔗 Repository: ${{ github.repository }}
📝 Commit: ${{ github.event.commits[0].message }}
👤 Author: ${{ github.actor }}
⛓️‍💥 App: dither-testnet-api-main
⚠️ **Failed Tests:**

⚠️ **Failed Tests:**
🔍 [View Logs](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})

Please investigate and fix ASAP! 🔧
2 changes: 1 addition & 1 deletion .github/workflows/testnet-reader-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
# Add reader-main specific test steps here

deploy-testnet:
needs: [ detect-changes, test ]
needs: [detect-changes, test]
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && needs.detect-changes.outputs.changed == 'true'
runs-on: ubuntu-latest
environment: testnet
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm lint-staged
29 changes: 14 additions & 15 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ services:
POSTGRES_USER: default
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
- '5432:5432'
volumes:
- ./data/postgres_data:/var/lib/postgresql/18/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "default"]
test: [CMD, pg_isready, -U, default]
interval: 10s
timeout: 5s
retries: 3
Expand All @@ -24,20 +24,20 @@ services:
# REST Services
# ================================
api-main:
container_name: "api-main"
container_name: api-main
build: ./packages/api-main
image: ditherchat/api-main
restart: always
depends_on:
postgres:
condition: service_healthy
environment:
PG_URI: "postgresql://default:password@postgres:5432/postgres"
AUTH: "dev"
PG_URI: 'postgresql://default:password@postgres:5432/postgres'
AUTH: dev
ports:
- 3000:3000
healthcheck:
test: "curl http://localhost:3000/v1/health || exit 1"
test: 'curl http://localhost:3000/v1/health || exit 1'
interval: 5s
timeout: 3s
retries: 30
Expand All @@ -47,24 +47,24 @@ services:
# ChronoSync Service
# ================================
reader-main:
container_name: "reader-main"
container_name: reader-main
build: ./packages/reader-main
image: ditherchat/reader-main
restart: always
command: ["pnpm", "start"]
command: [pnpm, start]
depends_on:
postgres:
condition: service_healthy
api-main:
condition: service_healthy
environment:
API_URLS: "https://atomone-testnet-1-api.allinbits.services"
START_BLOCK: "1979480"
API_URLS: 'https://atomone-testnet-1-api.allinbits.services'
START_BLOCK: '1979480'
BATCH_SIZE: 500
MEMO_PREFIX: "dither."
RECEIVER: "atone1uq6zjslvsa29cy6uu75y8txnl52mw06j6fzlep"
API_ROOT: "http://api-main:3000/v1"
AUTH: "dev"
MEMO_PREFIX: dither.
RECEIVER: atone1uq6zjslvsa29cy6uu75y8txnl52mw06j6fzlep
API_ROOT: 'http://api-main:3000/v1'
AUTH: dev
# Uncomment to enable fast sync
# ECLESIA_GRAPHQL_ENDPOINT: "https://graphql-atomone-testnet-1.allinbits.services/v1/graphql"
# ECLESIA_GRAPHQL_SECRET: ""
Expand All @@ -84,4 +84,3 @@ services:
# depends_on:
# - postgres
# - api-main

Loading