-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use npm packages #34
Merged
Merged
use npm packages #34
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
'prax-marketing-website': major | ||
'@repo/tailwind-config': major | ||
'@repo/eslint-config': major | ||
'@repo/tsconfig': major | ||
'@repo/context': major | ||
'chrome-extension': major | ||
'@repo/ui': major | ||
--- | ||
|
||
use imported packages |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,9 @@ on: | |
branches: | ||
- main | ||
|
||
env: | ||
DO_NOT_TRACK: 1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. replaces turbo telemetry disable command |
||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
@@ -15,131 +18,63 @@ concurrency: | |
# the first action is commented, most of those comments apply to all actions | ||
# every 'turbo' call is cached and essentially no-op if the inputs match | ||
|
||
# tried to make wasm compile conditional, but that turned out to be complex. | ||
# cache should make it decently fast. | ||
|
||
# pnpm cached by lock hash | ||
# turbo cached by cargo lock, pnpm lock in that order | ||
# mostly, compiled wasm will restore from turbo cache | ||
# rust cache only used in rust jobs | ||
# turbo cached pnpm lock | ||
|
||
jobs: | ||
turbo-compile: | ||
name: Compile | ||
uses: ./.github/workflows/compile-wasm.yml | ||
|
||
turbo-lint: | ||
name: Lint | ||
runs-on: buildjet-8vcpu-ubuntu-2204 | ||
needs: turbo-compile | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- id: lint | ||
uses: buildjet/cache@v3 | ||
with: | ||
path: .turbo | ||
key: ${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.ref }}-${{ github.sha }}-lint | ||
restore-keys: ${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.ref }}-${{ github.sha }}-compiled | ||
key: ${{ hashFiles('pnpm-lock.yaml') }}-${{ github.ref }}-${{ github.sha }}-lint | ||
restore-keys: ${{ hashFiles('pnpm-lock.yaml') }} | ||
- uses: pnpm/action-setup@v2 | ||
- uses: buildjet/setup-node@v4 | ||
with: | ||
node-version: '21' | ||
node-version: '22' | ||
cache: 'pnpm' | ||
- run: pnpm install --frozen-lockfile | ||
- run: pnpm turbo telemetry disable | ||
- run: pnpm turbo lint --cache-dir=.turbo | ||
|
||
turbo-build: | ||
name: Build | ||
runs-on: buildjet-8vcpu-ubuntu-2204 | ||
needs: turbo-compile | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- id: built | ||
uses: buildjet/cache@v3 | ||
with: | ||
path: .turbo | ||
key: ${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.ref }}-${{ github.sha }}-built | ||
restore-keys: ${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.ref }}-${{ github.sha }}-compiled | ||
key: ${{ hashFiles('pnpm-lock.yaml') }}-${{ github.ref }}-${{ github.sha }}-built | ||
restore-keys: ${{ hashFiles('pnpm-lock.yaml') }} | ||
- uses: pnpm/action-setup@v2 | ||
- uses: buildjet/setup-node@v4 | ||
with: | ||
node-version: '21' | ||
node-version: '22' | ||
cache: 'pnpm' | ||
- run: pnpm install --frozen-lockfile | ||
- run: pnpm turbo telemetry disable | ||
- run: pnpm turbo build --cache-dir=.turbo | ||
|
||
turbo-test: | ||
name: test | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
needs: turbo-compile | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- id: tested | ||
uses: buildjet/cache@v3 | ||
with: | ||
path: .turbo | ||
key: ${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.ref }}-${{ github.sha }}-test | ||
restore-keys: ${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.ref }}-${{ github.sha }}-compiled | ||
key: ${{ hashFiles('pnpm-lock.yaml') }}-${{ github.ref }}-${{ github.sha }}-test | ||
restore-keys: ${{ hashFiles('pnpm-lock.yaml') }} | ||
- uses: pnpm/action-setup@v2 | ||
- uses: buildjet/setup-node@v4 | ||
with: | ||
node-version: '21' | ||
node-version: '22' | ||
cache: 'pnpm' | ||
- run: pnpm install --frozen-lockfile | ||
- run: pnpm turbo telemetry disable | ||
- run: pnpm playwright install --with-deps chromium | ||
- run: pnpm turbo test --cache-dir=.turbo | ||
|
||
turbo-lint-rust: | ||
name: lint:rust | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
needs: turbo-compile | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- id: rust-linted | ||
uses: buildjet/cache@v3 | ||
with: | ||
path: .turbo | ||
key: ${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.ref }}-${{ github.sha }}-lint:rust | ||
restore-keys: ${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.ref }}-${{ github.sha }}-compiled | ||
- uses: pnpm/action-setup@v2 | ||
- uses: buildjet/setup-node@v4 | ||
with: | ||
node-version: '21' | ||
cache: 'pnpm' | ||
- run: pnpm install --frozen-lockfile | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
targets: wasm32-unknown-unknown | ||
- run: pnpm turbo telemetry disable | ||
- run: pnpm turbo lint:rust --cache-dir=.turbo | ||
|
||
turbo-test-rust: | ||
name: test:rust | ||
runs-on: buildjet-16vcpu-ubuntu-2204 | ||
needs: turbo-compile | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- id: tested | ||
uses: buildjet/cache@v3 | ||
with: | ||
path: .turbo | ||
key: ${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.ref }}-${{ github.sha }}-test:rust | ||
restore-keys: ${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.ref }}-${{ github.sha }}-compiled | ||
- uses: pnpm/action-setup@v2 | ||
- uses: buildjet/setup-node@v4 | ||
with: | ||
node-version: '21' | ||
cache: 'pnpm' | ||
- run: pnpm install --frozen-lockfile | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
targets: wasm32-unknown-unknown | ||
- uses: jetli/[email protected] | ||
with: | ||
version: 'latest' | ||
- uses: browser-actions/setup-firefox@v1 | ||
- run: pnpm turbo telemetry disable | ||
- run: pnpm turbo test:rust --cache-dir=.turbo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,8 +45,8 @@ | |
"@buf/*" | ||
], | ||
"snapTo": [ | ||
"penumbra-web" | ||
"prax-wallet" | ||
] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { default } from '@penumbra-zone/ui/postcss.config.js'; | ||
export { default } from '@repo/ui/postcss.config.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
possibly restore cache from a successful test run