-
Notifications
You must be signed in to change notification settings - Fork 0
fix(devbox): scp command improved to allow for src or dest to be devboxes #109
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
44e007a
cp dines
dines-rl f6b74cd
cp dines
dines-rl 8555c72
cp dines
dines-rl 2c58a10
cp dines
dines-rl 800adb3
Merge remote-tracking branch 'origin/main' into dines/scp-fix
dines-rl 260b0e2
cp dines
dines-rl e0731b6
cp dines
dines-rl f0d52c1
cp dines
dines-rl 6cfb106
cp dines
dines-rl 82882e9
cp dines
dines-rl 54a6144
cp dines
dines-rl 3e33baf
cp dines
dines-rl a614461
cp dines
dines-rl 127c702
cp dines
dines-rl 62083ab
Potential fix for code scanning alert no. 53: Workflow does not conta…
dines-rl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,41 @@ | ||
| name: E2E Smoke Tests | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| environment: | ||
| description: "Target environment" | ||
| required: true | ||
| type: choice | ||
| options: | ||
| - dev | ||
| - prod | ||
| default: dev | ||
|
|
||
| jobs: | ||
| e2e: | ||
| runs-on: ubuntu-slim | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v4 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: "20" | ||
| cache: "pnpm" | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Run e2e smoke tests | ||
| env: | ||
| RUNLOOP_API_KEY: ${{ inputs.environment == 'prod' && secrets.RUNLOOP_SMOKETEST_PROD_API_KEY || secrets.RUNLOOP_SMOKETEST_DEV_API_KEY }} | ||
| RUNLOOP_ENV: ${{ inputs.environment }} | ||
| run: pnpm run test:e2e | ||
This file contains hidden or 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 hidden or 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,50 @@ | ||
| import { pathsToModuleNameMapper } from "ts-jest"; | ||
| import { readFileSync } from "fs"; | ||
|
|
||
| // Read and parse tsconfig.json | ||
| const tsconfig = JSON.parse(readFileSync("./tsconfig.json", "utf8")); | ||
| const compilerOptions = tsconfig.compilerOptions; | ||
|
|
||
| export default { | ||
| preset: "ts-jest/presets/default-esm", | ||
| testEnvironment: "node", | ||
|
|
||
| roots: ["<rootDir>/tests"], | ||
| testMatch: ["**/__tests__/e2e/**/*.test.ts"], | ||
|
|
||
| setupFilesAfterEnv: ["<rootDir>/tests/setup-e2e.ts"], | ||
|
|
||
| moduleNameMapper: { | ||
| "^(\\.{1,2}/.*)\\.js$": "$1", | ||
| ...pathsToModuleNameMapper(compilerOptions.paths, { | ||
| prefix: "<rootDir>/", | ||
| useESM: true, | ||
| }), | ||
| }, | ||
|
|
||
| transform: { | ||
| "^.+\\.tsx?$": [ | ||
| "ts-jest", | ||
| { | ||
| useESM: true, | ||
| tsconfig: { | ||
| ...compilerOptions, | ||
| rootDir: ".", | ||
| module: "ESNext", | ||
| moduleResolution: "Node", | ||
| allowSyntheticDefaultImports: true, | ||
| esModuleInterop: true, | ||
| }, | ||
| }, | ||
| ], | ||
| }, | ||
|
|
||
| extensionsToTreatAsEsm: [".ts"], | ||
|
|
||
| // e2e tests may take a while (devbox creation, transfers, etc.) | ||
| testTimeout: 180_000, | ||
|
|
||
| moduleFileExtensions: ["ts", "js", "json"], | ||
| clearMocks: true, | ||
| restoreMocks: true, | ||
| }; |
This file contains hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.