Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Sep 18, 2024
1 parent 5fc07e2 commit bda45e7
Show file tree
Hide file tree
Showing 12 changed files with 19,123 additions and 38,357 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/test-frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
Test_Lint:
name: Test Lint
runs-on: ubuntu-latest
working-directory: ./frontend
steps:
- name: Check out codebase
uses: actions/checkout@v4
Expand All @@ -25,12 +24,11 @@ jobs:
run: npm ci

- name: Run lint tests
run: npm run test:lint
run: npm run -w frontend test:lint

Test_Format:
name: Test Format
runs-on: ubuntu-latest
working-directory: ./frontend
steps:
- name: Check out codebase
uses: actions/checkout@v4
Expand All @@ -44,7 +42,7 @@ jobs:
run: npm ci

- name: Run format checks
run: npm run test:format
run: npm run -w frontend test:format

Check_Types:
name: Check Types
Expand All @@ -64,12 +62,7 @@ jobs:
- name: Build staking package
run: npm run -w staking build

- name: Install node packages for frontend
working-directory: ./frontend
run: npm ci

- name: Check typescript types
working-directory: ./frontend
run: npm run -w frontend test:types

Test_Nix:
Expand Down
6 changes: 6 additions & 0 deletions frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ module.exports = {
}
config.optimization.moduleIds = 'named'
// End of hack

// Import the browser version of wasm instead of the node version
config.resolve.alias = {
...config.resolve.alias,
'@pythnetwork/staking-wasm$': path.resolve(__dirname, '../wasm/bundle'),
}
return config
},
}
Loading

0 comments on commit bda45e7

Please sign in to comment.