Skip to content

Commit

Permalink
experimentally remove cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ob6160 committed Sep 21, 2024
1 parent 6be46a5 commit 8e42981
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 21 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/cypress-e2e-chrome.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,6 @@ jobs:
with:
version: 1.27.7
- run: SUPABASE_SCANNER_BUFFER_SIZE=5mb supabase start
- name: NextCache
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
- name: Cypress run
uses: cypress-io/github-action@v4
env:
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/cypress-e2e-firefox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,6 @@ jobs:
with:
version: 1.27.7
- run: SUPABASE_SCANNER_BUFFER_SIZE=5mb supabase start
- name: NextCache
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
- name: Cypress run
uses: cypress-io/github-action@v4
env:
Expand Down
11 changes: 8 additions & 3 deletions supabase/migrations/20240816164300_initial_database_setup.sql
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ CREATE POLICY update_policy ON public.toilets
TO toiletmap_web
USING (true); -- Allows all updates

-- Grant permissions on public.areas
-- Grant permissions on public.areas and set RLS policies.
GRANT SELECT ON TABLE public.areas TO toiletmap_web;

CREATE POLICY select_policy ON public.areas
Expand All @@ -326,10 +326,10 @@ CREATE POLICY select_policy ON public.areas
USING ( true ); -- Allows all selects


-- Grant permissions on audit.record_version

-- Grant permissions on audit.record_version and set RLS policies.
GRANT SELECT ON TABLE audit.record_version TO toiletmap_web;
GRANT INSERT ON TABLE audit.record_version TO toiletmap_web;
GRANT UPDATE ON TABLE audit.record_version TO toiletmap_web;

CREATE POLICY select_policy ON audit.record_version
FOR SELECT
Expand All @@ -340,3 +340,8 @@ CREATE POLICY insert_policy ON audit.record_version
FOR INSERT
TO toiletmap_web
WITH CHECK (true); -- Allows all inserts

CREATE POLICY update_policy ON audit.record_version
FOR UPDATE
TO toiletmap_web
USING (true); -- Allows all updates

0 comments on commit 8e42981

Please sign in to comment.