-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from o-az/rustify
- Loading branch information
Showing
22 changed files
with
2,208 additions
and
485 deletions.
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 |
---|---|---|
@@ -1 +1 @@ | ||
BASE_URL="http://127.0.0.1:1234" | ||
BASE_URL="http://127.0.0.1:1234" |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ name: Deploy | |
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
|
@@ -13,7 +14,6 @@ defaults: | |
shell: bash | ||
|
||
env: | ||
CI: true | ||
ACTIONS_RUNNER_DEBUG: true | ||
ENVIRONMENT: "production" | ||
BASE_URL: "https://introspect.lagon.dev" | ||
|
@@ -26,32 +26,3 @@ jobs: | |
steps: | ||
- name: "Checkout" | ||
uses: actions/[email protected] | ||
|
||
- name: "Setup Bun" | ||
uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: latest | ||
|
||
- name: "Install Dependencies" | ||
run: bun install | ||
|
||
- name: "Setup Lagon" | ||
uses: lagonapp/github-action@latest | ||
with: | ||
lagon_token: ${{ secrets.LAGON_TOKEN }} | ||
command: deploy --production | ||
config: | | ||
{ | ||
"function_id": "${{ secrets.LAGON_FUNCTION_ID }}", | ||
"organization_id": "${{ secrets.LAGON_ORGANIZATION_ID }}", | ||
"index": "./src/index.ts", | ||
"client": null, | ||
"assets": null | ||
} | ||
- name: Log Function URL | ||
run: | | ||
url=$(grep -o 'https://[^[:space:]]*' lagon.output) | ||
echo "Function URL: $url" | ||
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,3 +1,4 @@ | ||
.lagon | ||
# Added by cargo | ||
|
||
/target | ||
_ | ||
node_modules |
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,8 +1,7 @@ | ||
{ | ||
"recommendations": ["biomejs.biome", "mikestead.dotenv", "EditorConfig.EditorConfig"], | ||
"unwantedRecommendations": [ | ||
// we use Biome for linting and formatting so we don't need these | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode" | ||
"recommendations": [ | ||
"rust-lang.rust-analyzer", | ||
"mikestead.dotenv", | ||
"EditorConfig.EditorConfig" | ||
] | ||
} |
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,24 +1,10 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"typescript.enablePromptUseWorkspaceTsdk": true, | ||
"typescript.preferences.importModuleSpecifier": "non-relative", | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"quickfix.biome": true, | ||
"source.fixAll.biome": true, | ||
"source.organizeImports.biome": true | ||
}, | ||
"editor.defaultFormatter": "biomejs.biome", | ||
"[json]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
}, | ||
"[jsonc]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
}, | ||
"[javascript]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
} | ||
"[rust]": { | ||
"editor.defaultFormatter": "rust-lang.rust-analyzer" | ||
}, | ||
"rust-analyzer.linkedProjects": [ | ||
"./Cargo.toml", | ||
"./Cargo.toml", | ||
"./Cargo.toml" | ||
] | ||
} |
Oops, something went wrong.