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

ci/renovate actions #234

Closed
wants to merge 3 commits into from
Closed
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 .github/workflows/deploy-to-supabase-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: supabase/setup-cli@v1
with:
version: 1.36.6
version: 1.106.1

- run: |
supabase link --project-ref $PRODUCTION_PROJECT_ID
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-to-supabase-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: supabase/setup-cli@v1
with:
version: 1.36.6
version: 1.106.1

- run: |
supabase link --project-ref $STAGING_PROJECT_ID
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
branches: [master, dev, staging]
pull_request:
branches: [master, dev, staging]
# see https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue#triggering-merge-group-checks-with-github-actions
merge_group:

jobs:
test:
Expand All @@ -19,13 +21,7 @@ jobs:
SUPABASE_URL: http://localhost:54321
SUPABASE_ANON_KEY: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0
SUPABASE_SERVICE_ROLE_KEY: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU
SUPABASE_MAX_ROWS: 1000
issuer: ${{ secrets.issuer }}
audience: ${{ secrets.audience }}
jwksuri: ${{ secrets.jwksuri }}
jwt_secret: ${{ secrets.jwt_secret }}
client_secret: ${{ secrets.client_secret }}
client_id: ${{ secrets.client_id }}
SUPABASE_MAX_ROWS: 10000

runs-on: ubuntu-latest
environment: ci_test
Expand All @@ -43,7 +39,7 @@ jobs:
node-version-file: ".nvmrc"
- uses: supabase/setup-cli@v1
with:
version: 1.36.6
version: 1.106.1
- run: supabase start
- run: npm ci
- run: npm run build --if-present
Expand Down
4 changes: 2 additions & 2 deletions __tests__/parse-content-range.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe("getRange", () => {
expect(result.error).toBeNull();
expect(result.range).toEqual({
start: 0,
end: 12779,
end: 9999,
total: 12780,
} as ContentRange);
});
Expand All @@ -27,7 +27,7 @@ describe("getRange", () => {
});

test("should return full range", async () => {
const expected = { end: 12779, start: 0, total: 12780 };
const expected = { end: 9999, start: 0, total: 12780 };
const { error, range: result } = await getRange(
`${SUPABASE_URL}/rest/v1/trees`
//
Expand Down
Loading