Skip to content

Merge pull request #134 from supabase/feat/airtable-view #323

Merge pull request #134 from supabase/feat/airtable-view

Merge pull request #134 from supabase/feat/airtable-view #323

Workflow file for this run

name: Test Wrappers
on:
pull_request:
push:
branches:
- main
jobs:
test:
name: Run tests
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build docker images
run: |
docker-compose -f wrappers/.ci/docker-compose.yaml up -d
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: |
sudo apt remove -y postgres*
sudo apt-get install -y wget gnupg
sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update -y -qq --fix-missing
sudo apt-get install -y \
clang-10 \
llvm-10 \
clang \
gcc \
make \
build-essential \
libz-dev \
zlib1g-dev \
strace \
libssl-dev \
pkg-config \
postgresql-15 \
postgresql-server-dev-15
sudo chmod a+rwx `/usr/lib/postgresql/15/bin/pg_config --pkglibdir` `/usr/lib/postgresql/15/bin/pg_config --sharedir`/extension /var/run/postgresql/
- run: cargo install cargo-pgrx --version 0.9.7
- run: cargo pgrx init --pg15 /usr/lib/postgresql/15/bin/pg_config
- run: cd wrappers && cargo pgrx test --features all_fdws,pg15