Skip to content

Add default policy when RLS is already enabled on a table (#4) #71

Add default policy when RLS is already enabled on a table (#4)

Add default policy when RLS is already enabled on a table (#4) #71

Workflow file for this run

name: Run tests
on:
push
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
include:
- node-version: "18"
postgres-version: "16"
- node-version: "20"
postgres-version: "16"
- node-version: "20"
postgres-version: "15"
- node-version: "20"
postgres-version: "14"
- node-version: "20"
postgres-version: "13"
- node-version: "20"
postgres-version: "12"
services:
postgres:
image: postgres:${{ matrix.postgres-version }}
env:
POSTGRES_PASSWORD: password
POSTGRES_DB: db
ports:
- 5432/tcp
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
# PNPM stuff
- name: Install pnpm
uses: pnpm/action-setup@v4
id: pnpm-install
with:
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install node dependencies
run: pnpm install
- name: Run tests
run: pnpm test
env:
TEST_DATABASE_URL: postgresql://postgres:password@localhost:${{ job.services.postgres.ports[5432] }}/db