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
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy primodium interface

on:
workflow_dispatch:
pull_request:
# pull_request:

jobs:
deploy:
Expand Down Expand Up @@ -36,6 +36,7 @@ jobs:
key: ${{ secrets.SERVER_KEY }}
port: ${{ secrets.SERVER_PORT }}
source: "packages/client/dist"
debug: true
target: /home/deployer/primodium-interface
strip_components: 3 # Remove the first 3 levels of directories from the source path to copy only the files inside dist
rm: true
Expand All @@ -47,6 +48,8 @@ jobs:
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SERVER_KEY }}
port: ${{ secrets.SERVER_PORT }}
debug: true
script_stop: true
script: |
chmod -R o+rX /home/deployer/primodium-interface
mv /home/deployer/primodium-interface /tmp
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: "v0.3.0"


- name: Build client bundle
env:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ This monorepo contains the entire stack for running Primodium, including the Rea

### Installation

[![Test suites for client and contracts](https://github.com/HappyChainDevs/primodium/actions/workflows/test.yml/badge.svg)](https://github.com/HappyChainDevs/primodium/actions/workflows/test.yml)

#### Prerequisites

There are a few CLI tools to install to be compatible with the entire monorepo.
Expand Down
4 changes: 3 additions & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"lint": "eslint ./src --ext .js,.ts,.tsx",
"lint:fix": "eslint ./src --ext .js,.ts,.tsx --fix",
"preview": "vite preview",
"test": "vitest"
"test": "vitest --environment jsdom"
},
"dependencies": {
"@amplitude/analytics-browser": "^2.1.3",
Expand All @@ -38,6 +38,7 @@
"comlink": "^4.4.1",
"contracts": "workspace:*",
"framer-motion": "^10.12.18",
"jsdom": "^24.1.0",
"lodash": "^4.17.21",
"phaser": "^3.80.1",
"react": "^18.2.0",
Expand All @@ -56,6 +57,7 @@
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "^4.3.0",
"@types/lodash": "^4.14.195",
"@types/node": "^22.15.17",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.9",
"@types/react-virtualized-auto-sizer": "^1.0.3",
Expand Down
Loading