Skip to content

Commit 9422e1c

Browse files
committed
wip
1 parent a89a2bb commit 9422e1c

File tree

18 files changed

+147
-138
lines changed

18 files changed

+147
-138
lines changed

.bruno/bruno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
"node_modules",
77
".git"
88
]
9-
}
9+
}

.docs/_cron.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# CRON jobs
22

3-
You have to allow two extensions: `pg_cron`, `pg_net` for a database to make this
4-
work.
5-
See [Supabase Documentation](https://supabase.com/docs/guides/cron).
3+
You have to allow two extensions: `pg_cron`, `pg_net` for a database to make
4+
this work. See [Supabase Documentation](https://supabase.com/docs/guides/cron).
65

76
You have to run the following commands in SQL Editor of your Supabase project.
87

98
## Generate cron tab
109

1110
1. Fill out root `.env` file with variables
1211
2. run tests: `deno run tests`
13-
3. cron install queries will be generated into the file `cron_jobs.sql` in the root
12+
3. cron install queries will be generated into the file `cron_jobs.sql` in the
13+
root
1414
4. visit supabase dashboard and run these queries in SQL editor
1515

1616
## GUI
@@ -21,7 +21,7 @@ There is actually a UI where you can manage your jobs very easily.
2121
https://supabase.com/dashboard/project/***/integrations/cron/jobs
2222
```
2323

24-
*Replace your project ID in the URL*.
24+
_Replace your project ID in the URL_.
2525

2626
## Remove existing job
2727

.docs/_edge_functions.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# Edge Functions
22

3-
Basically the same as AWS Lambda, but much better integrated in the whole system. Check [Supabase Documentation](https://supabase.com/docs/guides/functions).
3+
Basically the same as AWS Lambda, but much better integrated in the whole
4+
system. Check
5+
[Supabase Documentation](https://supabase.com/docs/guides/functions).
46

57
Code is located in: `./supabase/functions/*`.
68

7-
Each function can run a very short time (up to 2s) then it's terminated. So it's good to write small scripts with pagination. Database can give you great tooling for that.
8-
9-
Unexpected errors are handled by Sentry. That works good. What should be tweaked is notification about terminated function. It can be done probably by event pushing to Sentry as well.
10-
11-
9+
Each function can run a very short time (up to 2s) then it's terminated. So it's
10+
good to write small scripts with pagination. Database can give you great tooling
11+
for that.
1212

13+
Unexpected errors are handled by Sentry. That works good. What should be tweaked
14+
is notification about terminated function. It can be done probably by event
15+
pushing to Sentry as well.

.docs/_localhost.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ supabase functions deploy --project-ref xxx
2828

2929
## Dependencies
3030

31-
run `deno outdated`
31+
run `deno outdated`

.docs/_podman.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Podman
22

3-
If you are switching between Docker Desktop and Podman, you probably got some errors.
4-
Here is my troubleshooting:
3+
If you are switching between Docker Desktop and Podman, you probably got some
4+
errors. Here is my troubleshooting:
55

66
```bash
77
docker context ls

.github/action/deno-outdated/action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
name: Deno Outdated Check
2-
description: 'Check for outdated Deno dependencies and display them in PR comments'
2+
description: "Check for outdated Deno dependencies and display them in PR comments"
33

44
inputs:
55
directory:
6-
description: 'Directory where to run the deno outdated check'
6+
description: "Directory where to run the deno outdated check"
77
required: true
88
title:
9-
description: 'Message title'
10-
required: true
9+
description: "Message title"
10+
required: true
1111

1212
outputs:
1313
result:
14-
description: 'Result of the outdated check'
14+
description: "Result of the outdated check"
1515
value: ${{ steps.outdated.outputs.result }}
1616

1717
runs:
@@ -29,7 +29,7 @@ runs:
2929
cat deno.json
3030
bash ${{ github.workspace }}/.github/action/deno-outdated/deno-outdated.sh
3131
32-
- name: 'Outdated packages - post'
32+
- name: "Outdated packages - post"
3333
uses: marocchino/sticky-pull-request-comment@v2
3434
with:
3535
recreate: true

.github/dependabot.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
version: 2
22
updates:
3-
- package-ecosystem: 'github-actions'
4-
directory: '/'
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
55
schedule:
6-
interval: 'monthly'
6+
interval: "monthly"
77
labels:
8-
- 'dependencies'
9-
- 'github-actions'
8+
- "dependencies"
9+
- "github-actions"
1010
commit-message:
11-
prefix: 'ci'
12-
include: 'scope'
11+
prefix: "ci"
12+
include: "scope"

.github/workflows/deploy-supabase.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
version: 2.13.3
2323

24-
- name: 'Supabase - Remote Connect'
24+
- name: "Supabase - Remote Connect"
2525
env:
2626
PROJECT_ID: ${{ secrets.SUPABASE_PROJECT_ID }}
2727
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}

.github/workflows/deploy-web.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
cd src/web
3737
deno run compile
3838
deno task build
39-
39+
4040
- name: Upload artifact
4141
uses: actions/upload-pages-artifact@v3
4242
with:

.github/workflows/pr-supabase.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ env:
2323

2424
jobs:
2525
qa:
26-
name: 'QA'
26+
name: "QA"
2727
environment: test
2828
runs-on: ubuntu-latest
2929
steps:
@@ -38,16 +38,16 @@ jobs:
3838
- run: deno lint supabase/*
3939
- run: deno task tests --reload
4040

41-
- name: 'Generate cron jobs'
41+
- name: "Generate cron jobs"
4242
uses: actions/upload-artifact@v4
4343
with:
4444
name: cron_jobs.sql
4545
path: cron_jobs.sql
4646
retention-days: 1
4747

48-
- name: 'Check Outdated Packages'
48+
- name: "Check Outdated Packages"
4949
uses: ./.github/action/deno-outdated
5050
id: outdated_supabase
5151
with:
5252
directory: ./supabase/functions
53-
title: 'Deno Outdated - Supabase'
53+
title: "Deno Outdated - Supabase"

0 commit comments

Comments
 (0)