Skip to content

Commit

Permalink
Merge pull request #1 from o-az/rustify
Browse files Browse the repository at this point in the history
  • Loading branch information
o-az authored Feb 22, 2024
2 parents ffb5f52 + aa6dd92 commit f274dd3
Show file tree
Hide file tree
Showing 22 changed files with 2,208 additions and 485 deletions.
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/[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"
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

0 comments on commit f274dd3

Please sign in to comment.