Skip to content
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

rustify #1

Merged
merged 5 commits into from
Feb 22, 2024
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
2 changes: 1 addition & 1 deletion .env.dev
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"
31 changes: 1 addition & 30 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Deploy

on:
workflow_dispatch:
pull_request:
push:
branches: [main]

Expand All @@ -13,7 +14,6 @@ defaults:
shell: bash

env:
CI: true
ACTIONS_RUNNER_DEBUG: true
ENVIRONMENT: "production"
BASE_URL: "https://introspect.lagon.dev"
Expand All @@ -26,32 +26,3 @@ jobs:
steps:
- name: "Checkout"
uses: actions/checkout@v4.1.1

- 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"


5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.lagon
# Added by cargo

/target
_
node_modules
9 changes: 4 additions & 5 deletions .vscode/extensions.json
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"
]
}
30 changes: 8 additions & 22 deletions .vscode/settings.json
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"
]
}
Loading